mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-29 18:18:52 +00:00
1d7381327e
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>
13 lines
399 B
TypeScript
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'));
|
|
});
|