File tree Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Expand file tree Collapse file tree 2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ type PullOptions = {
17
17
conf ?: string
18
18
output : string
19
19
locales ?: string
20
- dryRun ? : boolean
20
+ dryRun : boolean
21
21
}
22
22
23
23
export const command = 'pull'
Original file line number Diff line number Diff line change @@ -31,10 +31,21 @@ afterEach(() => {
31
31
// ----------
32
32
// test cases
33
33
34
- test ( '--provider: not found' , async ( ) => {
35
- // setup mocks
34
+ test ( 'require option' , async ( ) => {
35
+ const push = await import ( '../../src/commands/push' )
36
+ const cmd = yargs . command ( push )
37
+ try {
38
+ await new Promise ( ( resolve , reject ) => {
39
+ cmd . parse ( `push` , ( err , argv , output ) => {
40
+ err ? reject ( err ) : resolve ( output )
41
+ } )
42
+ } )
43
+ } catch ( e ) {
44
+ expect ( e ) . toMatchObject ( { name : 'YError' } )
45
+ }
46
+ } )
36
47
37
- // run
48
+ test ( '--provider: not found' , async ( ) => {
38
49
const push = await import ( '../../src/commands/push' )
39
50
const cmd = yargs . command ( push )
40
51
await new Promise ( ( resolve , reject ) => {
You can’t perform that action at this time.
0 commit comments