Instead of counting events with name, verify each event to not equal event name

This commit is contained in:
Sheetal Nandi
2017-10-10 21:15:20 -07:00
parent 7f1ddaf7b8
commit cf9b83accc

View File

@@ -173,8 +173,7 @@ namespace ts.projectSystem {
}
hasZeroEvent<T extends server.ProjectServiceEvent>(eventName: T["eventName"]) {
const eventCount = countWhere(this.events, event => event.eventName === eventName);
assert.equal(eventCount, 0);
this.events.forEach(event => assert.notEqual(event.eventName, eventName));
}
checkSingleConfigFileDiagEvent(configFileName: string, triggerFile: string) {