Replace deprecated assert functions in test files. (#16945)

This commit is contained in:
Cory Rivera
2021-08-31 09:04:17 -07:00
committed by GitHub
parent de3ff30398
commit 0082031f97
79 changed files with 1960 additions and 1965 deletions

View File

@@ -38,7 +38,7 @@ describe('Tools Service Tests', function (): void {
tools.forEach(toolInfo => {
const tool = toolsService.getToolByName(toolInfo.name);
assert(!!tool, `The tool: ${toolInfo.name} is not recognized`);
assert.equal(tool!.type, toolInfo.type, 'returned tool name does not match expected value');
assert.strictEqual(tool!.type, toolInfo.type, 'returned tool name does not match expected value');
});
});
@@ -53,10 +53,10 @@ describe('Tools Service Tests', function (): void {
const iTools: ITool[] = tools.map(toolInfo => {
const tool = toolsService.getToolByName(toolInfo.name);
assert(!!tool, `The tool: ${toolInfo.name} is not recognized`);
assert.equal(tool!.type, toolInfo.type, 'returned notebook name does not match expected value');
assert.strictEqual(tool!.type, toolInfo.type, 'returned notebook name does not match expected value');
return tool!;
});
toolsService.toolsForCurrentProvider = iTools;
assert.deepEqual(iTools, toolsService.toolsForCurrentProvider, 'toolsForCurrentProvider did not return the value we set');
assert.deepStrictEqual(iTools, toolsService.toolsForCurrentProvider, 'toolsForCurrentProvider did not return the value we set');
});
});