@@ -95,7 +95,7 @@ async function makeFixes(textEditor) {
95
95
96
96
// Subscriptions now active for Editor Reload and Message Notification
97
97
// Send off a fix request.
98
- atom . commands . dispatch ( atom . views . getView ( textEditor ) , 'linter-eslint:fix-file' )
98
+ await atom . commands . dispatch ( atom . views . getView ( textEditor ) , 'linter-eslint:fix-file' )
99
99
100
100
const notification = await notificationPromise
101
101
expect ( notification . getMessage ( ) ) . toBe ( expectedMessage )
@@ -221,7 +221,7 @@ describe('The eslint provider for Linter', () => {
221
221
const editor = await atom . workspace . open ( paths . ignored )
222
222
const expectedMessage = 'Linter-ESLint: Fix complete.'
223
223
const notificationPromise = getNotification ( expectedMessage )
224
- atom . commands . dispatch ( atom . views . getView ( editor ) , 'linter-eslint:fix-file' )
224
+ await atom . commands . dispatch ( atom . views . getView ( editor ) , 'linter-eslint:fix-file' )
225
225
const notification = await notificationPromise
226
226
227
227
expect ( notification . getMessage ( ) ) . toBe ( expectedMessage )
@@ -481,7 +481,7 @@ describe('The eslint provider for Linter', () => {
481
481
482
482
it ( 'shows an info notification' , async ( ) => {
483
483
const notificationPromise = getNotification ( expectedMessage )
484
- atom . commands . dispatch ( atom . views . getView ( editor ) , 'linter-eslint:debug' )
484
+ await atom . commands . dispatch ( atom . views . getView ( editor ) , 'linter-eslint:debug' )
485
485
const notification = await notificationPromise
486
486
487
487
expect ( notification . getMessage ( ) ) . toBe ( expectedMessage )
@@ -490,7 +490,7 @@ describe('The eslint provider for Linter', () => {
490
490
491
491
it ( 'includes debugging information in the details' , async ( ) => {
492
492
const notificationPromise = getNotification ( expectedMessage )
493
- atom . commands . dispatch ( atom . views . getView ( editor ) , 'linter-eslint:debug' )
493
+ await atom . commands . dispatch ( atom . views . getView ( editor ) , 'linter-eslint:debug' )
494
494
const notification = await notificationPromise
495
495
const detail = notification . getDetail ( )
496
496
0 commit comments