Skip to content

Commit

Permalink
feat: expect should ignore header casing
Browse files Browse the repository at this point in the history
  • Loading branch information
eddienubes committed Aug 25, 2024
1 parent a9d9c27 commit cd12518
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Sage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,8 @@ export class Sage<T> {
expected: string | string[] | RegExp,
expectStackTrace: string
): void {
header = header.toLowerCase();

if (typeof expected === 'string') {
this.asserts.push({
type: 'header',
Expand Down

0 comments on commit cd12518

Please sign in to comment.