UNPKG

@triviality/core

Version:
12 lines (10 loc) 369 B
import { ImmutableServiceReferenceList } from '../ImmutableServiceReferenceList'; it('Filter async services', () => { const list = new ImmutableServiceReferenceList([{ type: 'async', }, { type: 'internal', }] as any); expect(list.async().toArray()).toEqual([{ type: 'async' }]); expect(list.notASync().toArray()).toEqual([{ type: 'internal' }]); });