Skip to content

Commit 8358a43

Browse files
committed
chore: rename test files
1 parent e839988 commit 8358a43

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

rules/utils/rule.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ const require = createRequire(import.meta.url);
88
const isIterable = object => typeof object?.[Symbol.iterator] === 'function';
99

1010
class FixAbortError extends Error {
11-
constructor() {
12-
super();
13-
this.name = 'FixAbortError';
14-
}
11+
name = 'FixAbortError';
1512
}
1613
const fixOptions = {
1714
abort() {

test/package.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const RULES_WITHOUT_PASS_FAIL_SECTIONS = new Set([
3232
'prefer-modern-math-apis',
3333
'prefer-math-min-max',
3434
'consistent-existence-index-check',
35+
'prefer-class-fields',
3536
'prefer-global-this',
3637
]);
3738

test/prefer-class-fields.mjs renamed to test/prefer-class-fields.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import outdent from 'outdent';
2-
import {getTester} from './utils/test.mjs';
2+
import {getTester} from './utils/test.js';
33

44
const {test} = getTester(import.meta);
55

test/snapshots/prefer-class-fields.mjs.md renamed to test/snapshots/prefer-class-fields.js.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Snapshot report for `test/prefer-class-fields.mjs`
1+
# Snapshot report for `test/prefer-class-fields.js`
22

3-
The actual snapshot is saved in `prefer-class-fields.mjs.snap`.
3+
The actual snapshot is saved in `prefer-class-fields.js.snap`.
44

55
Generated by [AVA](https://avajs.dev).
66

0 commit comments

Comments
 (0)