Skip to content

Commit 8bdb32b

Browse files
G-Rathljharb
authored andcommitted
[Test] add explicit marker for trailing whitespace in cases
1 parent 038c26c commit 8bdb32b

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

tests/src/rules/dynamic-import-chunkname.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ ruleTester.run('dynamic-import-chunkname', rule, {
10011001
{
10021002
desc: 'Remove webpackChunkName',
10031003
output: `import(
1004-
1004+
${''}
10051005
/* webpackMode: "eager" */
10061006
'someModule'
10071007
)`,
@@ -1010,7 +1010,7 @@ ruleTester.run('dynamic-import-chunkname', rule, {
10101010
desc: 'Remove webpackMode',
10111011
output: `import(
10121012
/* webpackChunkName: "someModule" */
1013-
1013+
${''}
10141014
'someModule'
10151015
)`,
10161016
},

tests/src/rules/no-duplicates.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -455,28 +455,28 @@ import {x,y} from './foo'
455455
import {
456456
BULK_ACTIONS_ENABLED
457457
} from '../constants';
458-
458+
${''}
459459
const TestComponent = () => {
460460
return <div>
461461
</div>;
462462
}
463-
463+
${''}
464464
export default TestComponent;
465465
`,
466466
output: `
467467
import {
468468
DEFAULT_FILTER_KEYS,
469469
BULK_DISABLED,
470-
470+
${''}
471471
BULK_ACTIONS_ENABLED
472472
} from '../constants';
473473
import React from 'react';
474-
474+
${''}
475475
const TestComponent = () => {
476476
return <div>
477477
</div>;
478478
}
479-
479+
${''}
480480
export default TestComponent;
481481
`,
482482
errors: ["'../constants' imported multiple times.", "'../constants' imported multiple times."],

tests/src/rules/no-import-module-exports.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ ruleTester.run('no-import-module-exports', rule, {
7474
import fs from 'fs/promises';
7575
7676
const subscriptions = new Map();
77-
77+
${''}
7878
export default async (client) => {
7979
/**
8080
* loads all modules and their subscriptions
8181
*/
8282
const modules = await fs.readdir('./src/modules');
83-
83+
${''}
8484
await Promise.all(
8585
modules.map(async (moduleName) => {
8686
// Loads the module
@@ -97,7 +97,7 @@ ruleTester.run('no-import-module-exports', rule, {
9797
}
9898
})
9999
);
100-
100+
${''}
101101
/**
102102
* Setting up all events.
103103
* binds all events inside the subscriptions map to call all functions provided

0 commit comments

Comments
 (0)