mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-20 14:13:08 +00:00
b5a427f2b9
Change-type: patch Signed-off-by: Cameron Diver <cameron@balena.io>
19 lines
585 B
TypeScript
19 lines
585 B
TypeScript
process.env.ROOT_MOUNTPOINT = './test/data';
|
|
process.env.BOOT_MOUNTPOINT = '/mnt/boot';
|
|
process.env.CONFIG_JSON_PATH = '/config.json';
|
|
process.env.DATABASE_PATH = './test/data/database.sqlite';
|
|
process.env.DATABASE_PATH_2 = './test/data/database2.sqlite';
|
|
process.env.DATABASE_PATH_3 = './test/data/database3.sqlite';
|
|
process.env.LED_FILE = './test/data/led_file';
|
|
|
|
import { stub } from 'sinon';
|
|
|
|
import dbus = require('dbus-native');
|
|
|
|
stub(dbus, 'systemBus').returns(({
|
|
invoke(obj: unknown, cb: () => void) {
|
|
console.log(obj);
|
|
return cb();
|
|
},
|
|
} as unknown) as dbus.MessageBus);
|