Files
NapCatQQ/.pnpm-store/v3/files/7a/17ae274c9c204affdf8159ec0cbf59918370f1d7fb99564d2b50e31bc8e299c91cdf509c48403008d29e63c3244ed0a3ba35ba01327fb13a3e1b86181e067c
TanTan e311ca3275
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
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

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