Skip to content

Commit

Permalink
Instead of counting events with name, verify each event to not equal …
Browse files Browse the repository at this point in the history
…event name
  • Loading branch information
sheetalkamat committed Oct 11, 2017
1 parent 7f1ddaf commit cf9b83a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/harness/unittests/tsserverProjectSystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cf9b83a

Please sign in to comment.