Skip to content

Commit c8a0148

Browse files
committed
Fix linting for test directory.
1 parent 25b03eb commit c8a0148

32 files changed

+36
-9
lines changed

__tests__/index-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-env mocha */
1+
/* eslint-env jest */
22
/* eslint global-require: 0 */
33

44
import assert from 'assert';

__tests__/src/rules/accessible-emoji-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env jest */
12
/**
23
* @fileoverview Enforce <marquee> elements are not used.
34
* @author Ethan Cohen

__tests__/src/rules/anchor-has-content-test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env jest */
12
/**
23
* @fileoverview Enforce anchor elements to contain accessible content.
34
* @author Lisa Ring & Niklas Holmberg
@@ -33,7 +34,7 @@ describe('determineChildType', () => {
3334
describe('default case', () => {
3435
it('should return false', () => {
3536
expect(
36-
determineChildType({})
37+
determineChildType({}),
3738
).toBe(false);
3839
});
3940
});

__tests__/src/rules/aria-props-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env jest */
12
/**
23
* @fileoverview Enforce all aria-* properties are valid.
34
* @author Ethan Cohen

__tests__/src/rules/aria-proptypes-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env jest */
12
/**
23
* @fileoverview Enforce ARIA state and property values are valid.
34
* @author Ethan Cohen

__tests__/src/rules/aria-role-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env jest */
12
/**
23
* @fileoverview Enforce aria role attribute is valid.
34
* @author Ethan Cohen

__tests__/src/rules/aria-unsupported-elements-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env jest */
12
/**
23
* @fileoverview Enforce that elements that do not support ARIA roles,
34
* states and properties do not have those attributes.

__tests__/src/rules/click-events-have-key-events-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env jest */
12
/**
23
* @fileoverview Enforce a clickable non-interactive element has at least 1 keyboard event listener.
34
* @author Ethan Cohen

__tests__/src/rules/heading-has-content-test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env jest */
12
/**
23
* @fileoverview Enforce heading (h1, h2, etc) elements contain accessible content.
34
* @author Ethan Cohen
@@ -33,7 +34,7 @@ describe('determineChildType', () => {
3334
describe('default case', () => {
3435
it('should return false', () => {
3536
expect(
36-
determineChildType({})
37+
determineChildType({}),
3738
).toBe(false);
3839
});
3940
});

__tests__/src/rules/href-no-hash-test.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-env jest */
12
/**
23
* @fileoverview Enforce links may not point to just #.
34
* @author Ethan Cohen

0 commit comments

Comments
 (0)