You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819
  1. import { expect } from 'chai';
  2. import { Injector } from '../../src/Injector'
  3. import { COMPONENT_A_VALUE, COMPONENT_B_VALUE, COMPONENT_C_VALUE } from '../CONSTANTS';
  4. import { TestComponent } from './TestComponent'
  5. var chai = require("chai");
  6. var chaiAsPromised = require("chai-as-promised");
  7. chai.use(chaiAsPromised);
  8. describe('InitializationTest', () => {
  9. it('initialized in the requested order', () => {
  10. const testComp = Injector.resolve(TestComponent)
  11. const data = testComp.getData()
  12. expect(data).to.eql([COMPONENT_A_VALUE, COMPONENT_B_VALUE, COMPONENT_C_VALUE])
  13. })
  14. })