@triviality/core
Version:
Purely typed service container
13 lines • 571 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
var ImmutableServiceReferenceList_1 = require("../ImmutableServiceReferenceList");
it('Filter async services', function () {
var list = new ImmutableServiceReferenceList_1.ImmutableServiceReferenceList([{
type: 'async',
}, {
type: 'internal',
}]);
expect(list.async().toArray()).toEqual([{ type: 'async' }]);
expect(list.notASync().toArray()).toEqual([{ type: 'internal' }]);
});
//# sourceMappingURL=ImmutableServiceReferenceList.test.js.map
;