Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
28 lines
1.1 KiB
Plaintext
28 lines
1.1 KiB
Plaintext
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const vitest_1 = require("vitest");
|
|
(0, vitest_1.describe)('BindToFluentSyntax', () => {
|
|
let containerMock;
|
|
(0, vitest_1.beforeAll)(() => {
|
|
containerMock = {
|
|
get: vitest_1.vitest.fn(),
|
|
};
|
|
});
|
|
(0, vitest_1.describe)('.get', () => {
|
|
(0, vitest_1.describe)('having a ServiceIdentifier<T>', () => {
|
|
class Foo {
|
|
}
|
|
let serviceIdentifierFixture;
|
|
(0, vitest_1.beforeAll)(() => {
|
|
serviceIdentifierFixture = Symbol();
|
|
});
|
|
(0, vitest_1.it)('should return infer T when called with ServiceIdentifier<T>', () => {
|
|
(0, vitest_1.expectTypeOf)(containerMock.get(serviceIdentifierFixture)).toEqualTypeOf();
|
|
});
|
|
(0, vitest_1.it)('should return infer T when called with generic T', () => {
|
|
(0, vitest_1.expectTypeOf)(containerMock.get(Symbol())).toEqualTypeOf();
|
|
});
|
|
});
|
|
});
|
|
});
|
|
//# sourceMappingURL=Container.spec-d.js.map |