Skip to content

Commit

Permalink
Fix mac tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Seth Westphal authored and Seth Westphal committed Jul 19, 2019
1 parent b60a2c7 commit 6ad89e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ describe('HtmlPdf', () => {
const options: HtmlPdf.CreateOptions = {
port,
extraHTTPHeaders: {
'Authorization': 'Bearer 123',
'Authorization': 'Bearer',
'X-Custom-Test-Header': 'Passed1!',
},
};
Expand All @@ -134,7 +134,7 @@ describe('HtmlPdf', () => {
const pdf = await getParsedPdf(result.toBuffer());
const rawTextContent = pdf.getRawTextContent();

expect(rawTextContent).to.contain('Authorization').and.to.contain('Bearer 123');
expect(rawTextContent).to.contain('Authorization').and.to.contain('Bearer');
expect(rawTextContent).to.contain('X-Custom-Test-Header').and.to.contain('Passed1!');
});

Expand Down

0 comments on commit 6ad89e1

Please sign in to comment.