11import fs from 'fs'
22import path from 'path'
33import execa from 'execa'
4- import bail from 'bail'
4+ import { bail } from 'bail'
55import test from 'tape'
66import strip from 'strip-ansi'
77import figures from 'figures'
@@ -374,7 +374,7 @@ test('unified-args', (t) => {
374374
375375 t . plan ( 1 )
376376
377- execa ( bin , [ 'one.txt' , flag , './plugin' ] ) . then ( onsuccess , t . fail )
377+ execa ( bin , [ 'one.txt' , flag , './plugin.js ' ] ) . then ( onsuccess , t . fail )
378378
379379 function onsuccess ( result ) {
380380 // Attacher logs options, which are `undefined`.
@@ -393,7 +393,7 @@ test('unified-args', (t) => {
393393 t . plan ( 1 )
394394
395395 // Should be quoted.
396- execa ( bin , [ '.' , flag , './plugin=foo:bar' ] ) . then ( t . fail , onfail )
396+ execa ( bin , [ '.' , flag , './plugin.js =foo:bar' ] ) . then ( t . fail , onfail )
397397
398398 function onfail ( result ) {
399399 t . deepEqual (
@@ -406,7 +406,7 @@ test('unified-args', (t) => {
406406
407407 t . test ( 'should honour `' + flag + '`' , ( t ) => {
408408 const bin = path . join ( fixtures , 'plugins' , 'cli.js' )
409- const options = './plugin=foo:{bar:"baz",qux:1,quux:true}'
409+ const options = './plugin.js =foo:{bar:"baz",qux:1,quux:true}'
410410
411411 t . plan ( 1 )
412412
@@ -733,7 +733,7 @@ test('unified-args', (t) => {
733733
734734 t . plan ( 1 )
735735
736- execa ( bin , [ '.' , '-u' , './plugin' ] ) . then ( t . fail , onfail )
736+ execa ( bin , [ '.' , '-u' , './plugin.js ' ] ) . then ( t . fail , onfail )
737737
738738 function onfail ( result ) {
739739 t . deepEqual (
0 commit comments