mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-31 01:25:38 -05:00
Add more folders to strict compile (#8954)
* add more folders to strictire compile, add more strict compile options * update ci * remove unnecessary assertion
This commit is contained in:
@@ -6,14 +6,14 @@
|
||||
import * as assert from 'assert';
|
||||
|
||||
export class EventVerifierSingle<T> {
|
||||
private _eventArgument: T;
|
||||
private _eventArgument?: T;
|
||||
private _eventFired: boolean;
|
||||
|
||||
constructor() {
|
||||
this._eventFired = false;
|
||||
}
|
||||
|
||||
public get eventArgument(): T {
|
||||
public get eventArgument(): T | undefined {
|
||||
return this._eventArgument;
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ export class EventVerifierSingle<T> {
|
||||
}
|
||||
}
|
||||
|
||||
public assertFiredWithVerify(argumentVerification: (arg: T) => void) {
|
||||
public assertFiredWithVerify(argumentVerification: (arg: T | undefined) => void) {
|
||||
assert.ok(this._eventFired);
|
||||
argumentVerification(this._eventArgument);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user