diff --git a/test/18-startup.coffee b/test/18-startup.coffee deleted file mode 100644 index ed079354..00000000 --- a/test/18-startup.coffee +++ /dev/null @@ -1,13 +0,0 @@ -{ expect } = require './lib/chai-config' - -{ Supervisor } = require '../src/supervisor' - -describe 'Startup', -> - it 'should startup correctly', -> - supervisor = new Supervisor() - expect(supervisor.init()).to.not.throw - expect(supervisor.db).to.not.be.null - expect(supervisor.config).to.not.be.null - expect(supervisor.logger).to.not.be.null - expect(supervisor.deviceState).to.not.be.null - expect(supervisor.apiBinder).to.not.be.null diff --git a/test/18-startup.ts b/test/18-startup.ts new file mode 100644 index 00000000..7cec2ab1 --- /dev/null +++ b/test/18-startup.ts @@ -0,0 +1,16 @@ +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; + }); +});