Remove dependency on chai

This commit is contained in:
andy-ms
2017-12-03 15:41:21 -08:00
parent dbf2ffaaad
commit 72b7d6ef4e
33 changed files with 645 additions and 573 deletions

View File

@@ -139,7 +139,7 @@ interface Array<T> {}`
function checkMapKeys(caption: string, map: Map<any>, expectedKeys: ReadonlyArray<string>) {
verifyMapSize(caption, map, expectedKeys);
for (const name of expectedKeys) {
assert.isTrue(map.has(name), `${caption} is expected to contain ${name}, actual keys: ${arrayFrom(map.keys())}`);
assert(map.has(name), `${caption} is expected to contain ${name}, actual keys: ${arrayFrom(map.keys())}`);
}
}