Skip to content

Commit

Permalink
Update chai-datetime.d.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
basarat committed May 2, 2014
1 parent f010cae commit edd089a
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions chai-datetime/chai-datetime.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,19 @@ declare module chai {
}

interface Assert {
afterDate(leftDate: Date, rightDate: Date): boolean;
beforeDate(leftDate: Date, rightDate: Date): boolean;
equalDate(leftDate: Date, rightDate: Date): boolean;

afterTime(leftDate: Date, rightDate: Date): boolean;
beforeTime(leftDate: Date, rightDate: Date): boolean;
equalTime(leftDate: Date, rightDate: Date): boolean;
equalTime(val: Date, exp: Date, msg?: string): boolean;
notEqualTime(val: Date, exp: Date, msg?: string): boolean;
beforeTime(val: Date, exp: Date, msg?: string): boolean;
notBeforeTime(val: Date, exp: Date, msg?: string): boolean;
afterTime(val: Date, exp: Date, msg?: string): boolean;
notAfterTime(val: Date, exp: Date, msg?: string): boolean;

equalDate(val: Date, exp: Date, msg?: string): boolean;
notEqualDate(val: Date, exp: Date, msg?: string): boolean;
beforeDate(val: Date, exp: Date, msg?: string): boolean;
notBeforeDate(val: Date, exp: Date, msg?: string): boolean;
afterDate(val: Date, exp: Date, msg?: string): boolean;
notAfterDate(val: Date, exp: Date, msg?: string): boolean;
}
}

Expand Down

0 comments on commit edd089a

Please sign in to comment.