Skip to content

fix: container reset isn't working as expected #1449

@gmccullo

Description

@gmccullo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triageIssues which needs to be reproduced to be verified report.type: fixIssues describing a broken feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions