typedi
typedi copied to clipboard
fix: container reset isn't working as expected
Description
This test fails:
test('reset should clear container', () => {
assert.ok(!typedi.Container.has('foobar'), "Should be no foobar in container.");
typedi.Container.set('foobar', 'some value');
assert.ok(typedi.Container.has('foobar'), "Foobar should be in container.");
typedi.Container.reset();
assert.ok(!typedi.Container.has('foobar'), "Foobar should be cleared from container.");
});