chore: Enforce a few house rules via eslint (#2539)
This commit is contained in:
committed by
dermotduffy
parent
5572ec728e
commit
921d45e577
@@ -501,7 +501,7 @@ describe('should handle ptz action', () => {
|
||||
|
||||
// Emulate the stop being called while the action is running, but before
|
||||
// the *next* timer is scheduled.
|
||||
let resolve: () => void;
|
||||
let resolve: () => void = () => {};
|
||||
const promise: Promise<void> = new Promise((_resolve) => {
|
||||
resolve = _resolve;
|
||||
});
|
||||
@@ -512,7 +512,7 @@ describe('should handle ptz action', () => {
|
||||
|
||||
action.stop();
|
||||
|
||||
resolve!();
|
||||
resolve();
|
||||
await vi.runOnlyPendingTimersAsync();
|
||||
|
||||
// There should be no additional calls.
|
||||
|
||||
Reference in New Issue
Block a user