Inline keysOfMap and valuesOfMap.

This commit is contained in:
Andy Hanson
2016-12-28 09:05:52 -08:00
parent f510897dbd
commit 39c19a74ea
6 changed files with 14 additions and 26 deletions

View File

@@ -246,7 +246,7 @@ namespace ts.projectSystem {
export function checkMapKeys(caption: string, map: Map<any>, expectedKeys: string[]) {
assert.equal(map.size, expectedKeys.length, `${caption}: incorrect size of map`);
for (const name of expectedKeys) {
assert.isTrue(map.has(name), `${caption} is expected to contain ${name}, actual keys: ${keysOfMap(map)}`);
assert.isTrue(map.has(name), `${caption} is expected to contain ${name}, actual keys: ${arrayFrom(map.keys())}`);
}
}