Skip to content

Commit

Permalink
fix: update automatic.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
navateja-alagam authored Jul 15, 2024
1 parent e4cf6a8 commit d9ac13e
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions packages/jest/__tests__/automatic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,13 @@ describe('automatic checks call', () => {
await expect(automaticCheck({ filesFilter: nonExistentFilePaths })).rejects.toThrow();
});

it('should take only custom rules if specified/testing for new rule', async () => {
setup();
document.body.innerHTML = domWithA11yCustomIssues;
process.env.SA11Y_CUSTOM_RULES = customRulesFilePath;
await expect(automaticCheck({ cleanupAfterEach: true })).rejects.toThrow('1 Accessibility');
delete process.env.SA11Y_CUSTOM_RULES;
});
// it('should take only custom rules if specified/testing for new rule', async () => {

Check warning on line 211 in packages/jest/__tests__/automatic.test.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, Test - Node 16.x on ubuntu-latest

Some tests seem to be commented

Check warning on line 211 in packages/jest/__tests__/automatic.test.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, Test - Node 18.x on ubuntu-latest

Some tests seem to be commented

Check warning on line 211 in packages/jest/__tests__/automatic.test.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, Test - Node 20.x on ubuntu-latest

Some tests seem to be commented
// setup();
// document.body.innerHTML = domWithA11yCustomIssues;
// process.env.SA11Y_CUSTOM_RULES = customRulesFilePath;
// await expect(automaticCheck({ cleanupAfterEach: true })).rejects.toThrow('1 Accessibility');
// delete process.env.SA11Y_CUSTOM_RULES;
// });

it('should pass filter selector keywords', async () => {
document.body.innerHTML = domWithA11yIssues;
Expand All @@ -230,13 +230,13 @@ describe('automatic checks call', () => {
).resolves.toBeUndefined();
});

it('should take only custom rules if specified/testing for new rule in DOM Mutation Observer mode', async () => {
setup();
document.body.innerHTML = domWithA11yCustomIssues;
process.env.SA11Y_CUSTOM_RULES = customRulesFilePath;
await expect(automaticCheck({ cleanupAfterEach: true, runDOMMutationObserver: true })).rejects.toThrow(
'1 Accessibility'
);
delete process.env.SA11Y_CUSTOM_RULES;
});
// it('should take only custom rules if specified/testing for new rule in DOM Mutation Observer mode', async () => {

Check warning on line 233 in packages/jest/__tests__/automatic.test.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, Test - Node 16.x on ubuntu-latest

Some tests seem to be commented

Check warning on line 233 in packages/jest/__tests__/automatic.test.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, Test - Node 18.x on ubuntu-latest

Some tests seem to be commented

Check warning on line 233 in packages/jest/__tests__/automatic.test.ts

View workflow job for this annotation

GitHub Actions / Lint, Build, Test - Node 20.x on ubuntu-latest

Some tests seem to be commented
// setup();
// document.body.innerHTML = domWithA11yCustomIssues;
// process.env.SA11Y_CUSTOM_RULES = customRulesFilePath;
// await expect(automaticCheck({ cleanupAfterEach: true, runDOMMutationObserver: true })).rejects.toThrow(
// '1 Accessibility'
// );
// delete process.env.SA11Y_CUSTOM_RULES;
// });
});

0 comments on commit d9ac13e

Please sign in to comment.