Skip to content

Commit

Permalink
✅ Fix unit tests that can not get env vars in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bojieyang committed Mar 31, 2023
1 parent d8bea60 commit 86bea77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions __tests__/sitemap-processor.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ describe('sitemap-processor test cases', () => {
await sitemapProcessor.process();

expect(sitemapProcessor.options.key).toStrictEqual(
process.env['INDEXNOW_KEY']
process.env['INDEXNOW_KEY'] ?? ''
);
expect(sitemapProcessor.options.since).toStrictEqual(1);
expect(sitemapProcessor.options.sinceUnit).toStrictEqual('month');
Expand All @@ -174,7 +174,7 @@ describe('sitemap-processor test cases', () => {
endpoint: 'www.bing.com',
limit: 100,
timeout: 10000,
failureStrategy: 'error'
failureStrategy: 'ignore'
};
});
const sitemapProcessor = new SitemapProcessor();
Expand Down

0 comments on commit 86bea77

Please sign in to comment.