Skip to content

Commit 743ebca

Browse files
G-Rathljharb
authored andcommitted
[Tests] no-cycle: don't override the filename
1 parent cae364c commit 743ebca

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/src/rules/no-cycle.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,13 @@ const rule = require('rules/no-cycle');
88

99
const error = (message) => ({ message });
1010

11-
const test = (def) => _test(Object.assign(def, {
11+
const test = (def) => _test({
1212
filename: testFilePath('./cycles/depth-zero.js'),
13-
}));
14-
const testVersion = (specifier, t) => _testVersion(specifier, () => Object.assign(t(), {
13+
...def,
14+
});
15+
const testVersion = (specifier, t) => _testVersion(specifier, () => ({
1516
filename: testFilePath('./cycles/depth-zero.js'),
17+
...t(),
1618
}));
1719

1820
const testDialects = ['es6'];

0 commit comments

Comments
 (0)