Skip to content

Commit 6177975

Browse files
committed
test(await-async-utils): increase coverage
1 parent 3784fa6 commit 6177975

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/lib/rules/await-async-utils.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,14 @@ ruleTester.run('await-async-utils', rule, {
127127
...ASYNC_UTILS.map(asyncUtil => ({
128128
code: `
129129
test('several ${asyncUtil} utils not waited', () => {
130-
${asyncUtil}(() => getByLabelText('username'));
131-
doSomethingElse();
130+
const aPromise = ${asyncUtil}(() => getByLabelText('username'));
131+
doSomethingElse(aPromise);
132132
${asyncUtil}(() => getByLabelText('email'));
133133
});
134134
`,
135135
errors: [
136-
{ line: 3, messageId: 'awaitAsyncUtil' },
137-
{ line: 5, messageId: 'awaitAsyncUtil' },
136+
{ line: 3, column: 28, messageId: 'awaitAsyncUtil' },
137+
{ line: 5, column: 11, messageId: 'awaitAsyncUtil' },
138138
],
139139
})),
140140
],

0 commit comments

Comments
 (0)