Files
NapCatQQ/.pnpm-store/v3/files/9b/0fb901a83e972254d01dd88c7dbe548701202172e7430524672ed0f99ec20146859c67bfc2029f48ff2aaf6e2cef868caa605e3a5994199cf024fcb039fab9
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

15 lines
627 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const vitest_1 = require("vitest");
const __1 = require("../..");
(0, vitest_1.describe)('Issue 1518', () => {
(0, vitest_1.it)('should not throw on deactivating undefined singleton values', async () => {
const container = new __1.Container();
const symbol = Symbol.for('foo');
container.bind(symbol).toConstantValue(undefined);
console.log(container.get(symbol));
await container.unbind('foo');
(0, vitest_1.expect)(() => { }).not.toThrow();
});
});
//# sourceMappingURL=issue_1518.test.js.map