test36.spec.js 310 B

1234567891011
  1. import { OutputTest } from './../js/util/outputTest';
  2. describe('Output test util class', () => {
  3. it('should store the values it received', () => {
  4. const values = ['1','2'];
  5. const out = new OutputTest();
  6. values.forEach( v => out.sendOutput(v));
  7. expect(out.list).toEqual(['1','2']);
  8. });
  9. });