Commit a4703efd authored by Jean-Philippe Steinmetz's avatar Jean-Philippe Steinmetz
Browse files

Fixing issue with instance names not being created correctly for new instances

parent 1e809bf1
......@@ -288,7 +288,7 @@ export default class ObjectFactory {
// Names are namespace specific by type. Prepend the type to the name if not already done.
if (name && !name.includes(className)) {
name = `${className}.${name}`;
name = `${className}:${name}`;
// First check to see if an instance was already created for the given name
......@@ -103,7 +103,7 @@ describe("ObjectFactory Tests", () => {
const instance3: TestClassA = factory.getInstance("TestClassA.myInstance");
const instance3: TestClassA = factory.getInstance("TestClassA:myInstance");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment