Skip to content

Commit

Permalink
[Tests] no-cycle: don't override the filename
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath authored and ljharb committed Sep 19, 2024
1 parent cae364c commit 743ebca
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/src/rules/no-cycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ const rule = require('rules/no-cycle');

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

const test = (def) => _test(Object.assign(def, {
const test = (def) => _test({
filename: testFilePath('./cycles/depth-zero.js'),
}));
const testVersion = (specifier, t) => _testVersion(specifier, () => Object.assign(t(), {
...def,
});
const testVersion = (specifier, t) => _testVersion(specifier, () => ({
filename: testFilePath('./cycles/depth-zero.js'),
...t(),
}));

const testDialects = ['es6'];
Expand Down

0 comments on commit 743ebca

Please sign in to comment.