UNPKG

inversify

Version:

A powerful and lightweight inversion of control container for JavaScript and Node.js apps powered by TypeScript.

15 lines 627 B
"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