forked from horvay/jasmine-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.d.ts
28 lines (23 loc) · 1 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
declare module 'jasmine-snapshot' {
export let KeyExceptionList: string[];
export let MatchesSnapshot: (snapshot: string, actual: string) => void;
export let MatchesXMLSnapshot: (snapshot: string, actual: string) => void;
export let MatchesJSONSnapshot: (snapshot: string, actual: string) => void;
export let MatchesJSSnapshot: (snapshot: string, actual: any) => void;
export let ResetExceptionList: () => void;
export function registerSnapshots(snapshot_object: { [key: string]: string }, suiteNname: string)
export class SnapshotJSInner
{
constructor(actual: Object);
public toMatchSnapshot(snapshot?: string): void;
public afterApplying(transformFunction: (actual: Object) => Object);
}
export class SnapshotXMLInner
{
constructor(actual: string);
public toMatchSnapshot(snapshot?: string): void;
public afterApplying(transformFunction: (actual: string) => string);
}
export function expectjs(actual: Object): SnapshotJSInner;
export function expectxml(xml_actual: string): SnapshotJSInner;
}