We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1faf95 commit 29e5dfdCopy full SHA for 29e5dfd
types/base.d.ts
@@ -7,6 +7,9 @@ export type ErrorValidator
7
export interface Observable {
8
subscribe(observer: (value: {}) => void): void;
9
}
10
+export interface SnapshotOptions {
11
+ id?: string;
12
+}
13
export type Test = (t: TestContext) => PromiseLike<void> | Iterator<any> | Observable | void;
14
export type GenericTest<T> = (t: GenericTestContext<T>) => PromiseLike<void> | Iterator<any> | Observable | void;
15
export type CallbackTest = (t: CallbackTestContext) => void;
@@ -78,6 +81,7 @@ export interface AssertContext {
78
81
* Assert that contents matches a snapshot.
79
82
*/
80
83
snapshot(contents: any, message?: string): void;
84
+ snapshot(contents: any, options: SnapshotOptions, message?: string): void;
85
/**
86
* Assert that contents does not match regex.
87
0 commit comments