mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-25 08:21:07 +00:00
d3221ca235
Change-type: patch
17 lines
584 B
TypeScript
17 lines
584 B
TypeScript
import { Supervisor } from '../src/supervisor';
|
|
import { expect } from './lib/chai-config';
|
|
|
|
describe('Startup', () => {
|
|
it('should startup correctly', function() {
|
|
const supervisor = new Supervisor();
|
|
expect(supervisor.init()).to.not.throw;
|
|
// Cast as any to access private properties
|
|
const anySupervisor = supervisor as any;
|
|
expect(anySupervisor.db).to.not.be.null;
|
|
expect(anySupervisor.config).to.not.be.null;
|
|
expect(anySupervisor.logger).to.not.be.null;
|
|
expect(anySupervisor.deviceState).to.not.be.null;
|
|
expect(anySupervisor.apiBinder).to.not.be.null;
|
|
});
|
|
});
|