Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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_C_VALUE, COMPONENT_B_VALUE, COMPONENT_A_VALUE])
  13. })
  14. })