File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ export type ErrorValidator
7
7
export interface Observable {
8
8
subscribe ( observer : ( value : { } ) => void ) : void ;
9
9
}
10
+ export interface SnapshotOptions {
11
+ id ?: string ;
12
+ }
10
13
export type Test = ( t : TestContext ) => PromiseLike < void > | Iterator < any > | Observable | void ;
11
14
export type GenericTest < T > = ( t : GenericTestContext < T > ) => PromiseLike < void > | Iterator < any > | Observable | void ;
12
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 ;
81
85
/**
82
86
* Assert that contents does not match regex.
83
87
*/
You can’t perform that action at this time.
0 commit comments