Skip to content

Commit ca160be

Browse files
committed
chore: rename test files
1 parent 3a520cb commit ca160be

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

rules/utils/rule.js

+1-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ import getDocumentationUrl from './get-documentation-url.js';
33
const isIterable = object => typeof object?.[Symbol.iterator] === 'function';
44

55
class FixAbortError extends Error {
6-
constructor() {
7-
super();
8-
this.name = 'FixAbortError';
9-
}
6+
name = 'FixAbortError';
107
}
118
const fixOptions = {
129
abort() {

test/package.js

+1
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
'no-instanceof-builtins',
3738
'no-named-default',

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

+1-1
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

+2-2
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)