Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public test(name: string): test.Test {
const newTest = new test.Test();
newTest.session = this;
newTest.proto.name = name;
newTest.proto.fileName = utils.getCallerFile(this.rootDir);
// Add it to global index.
this.tests[name] = newTest;
return newTest;
}
public test(name: string): test.Test {
const newTest = new test.Test();
newTest.session = this;
newTest.proto.name = name;
newTest.proto.fileName = utils.getCallerFile(this.rootDir);
// Add it to global index.
this.tests[name] = newTest;
return newTest;
}