mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 07:13:45 -05:00
Instead of counting events with name, verify each event to not equal event name
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user