inversify
Version:
A powerful and lightweight inversion of control container for JavaScript and Node.js apps powered by TypeScript.
13 lines • 534 B
JavaScript
import { describe, expect, it } from 'vitest';
import { Container } from '../../index.js';
describe('Issue 1518', () => {
it('should not throw on deactivating undefined singleton values', async () => {
const container = new Container();
const symbol = Symbol.for('foo');
container.bind(symbol).toConstantValue(undefined);
console.log(container.get(symbol));
await container.unbindAsync('foo');
expect(() => { }).not.toThrow();
});
});
//# sourceMappingURL=issue_1518.test.js.map