balena-supervisor/test/01-constants.spec.ts
Cameron Diver 1d7381327e Make the db module a singleton
We were treating the database class as a singleton, but still having to pass
around the db instance. Now we can simply require the db module and have
access to the database handle.

Change-type: patch
Signed-off-by: Cameron Diver <cameron@balena.io>
2020-05-29 15:02:38 +01:00

13 lines
399 B
TypeScript

import ChaiConfig = require('./lib/chai-config');
const { expect } = ChaiConfig;
import constants = require('../src/lib/constants');
describe('constants', function () {
it('has the correct configJsonPathOnHost', () =>
expect(constants.configJsonPathOnHost).to.equal('/config.json'));
it('has the correct rootMountPoint', () =>
expect(constants.rootMountPoint).to.equal('./test/data'));
});