Skip to content

Commit

Permalink
fix: tests fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
forsti0506 committed Aug 29, 2021
1 parent 466e41b commit 0e838a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/a11y-sitechecker.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ describe('a11y-sitechecker', () => {

return entry(mockConfig as Config, {}).then(e => {
expect(e.length).toBe(10);
}).catch(e => expect(e.message).toContain('config.viewports.forEach is not'));
}).catch(e => expect(e.message).toContain('Cannot read property'));
});

test('Error on empty config testinger', () => {
Expand Down
2 changes: 1 addition & 1 deletion lib/utils/setup-config.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ describe('setup-config', () => {
});

test('setup-axe with standard runners and result types', async () => {
const config = setupConfig({});
const config = setupConfig({providedConfig: {name: 'Testinger', urlsToAnalyze: ['www.test.at']}});
const browser = await puppeteer.launch(config.launchOptions);
const page = (await browser.pages())[0];
await setupAxe(page, {}, config)
Expand Down

0 comments on commit 0e838a3

Please sign in to comment.