We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b60a2c7 commit 6ad89e1Copy full SHA for 6ad89e1
test/index.ts
@@ -125,7 +125,7 @@ describe('HtmlPdf', () => {
125
const options: HtmlPdf.CreateOptions = {
126
port,
127
extraHTTPHeaders: {
128
- 'Authorization': 'Bearer 123',
+ 'Authorization': 'Bearer',
129
'X-Custom-Test-Header': 'Passed1!',
130
},
131
};
@@ -134,7 +134,7 @@ describe('HtmlPdf', () => {
134
const pdf = await getParsedPdf(result.toBuffer());
135
const rawTextContent = pdf.getRawTextContent();
136
137
- expect(rawTextContent).to.contain('Authorization').and.to.contain('Bearer 123');
+ expect(rawTextContent).to.contain('Authorization').and.to.contain('Bearer');
138
expect(rawTextContent).to.contain('X-Custom-Test-Header').and.to.contain('Passed1!');
139
});
140
0 commit comments