typedi icon indicating copy to clipboard operation
typedi copied to clipboard

fix: container reset isn't working as expected

Open gmccullo opened this issue 1 year ago • 0 comments

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.");
});

gmccullo avatar Dec 13 '24 16:12 gmccullo