@@ -4,9 +4,9 @@ import sinon from 'sinon';
44
55import { mockProcess } from '../../utils/test' ;
66import { shell } from '../shell' ;
7- import { create } from './create ' ;
7+ import project from './project ' ;
88
9- describe ( 'create ' , ( ) => {
9+ describe ( 'project ' , ( ) => {
1010 const sandbox = sinon . createSandbox ( ) ;
1111 let spawnSpy : sinon . SinonStub ;
1212
@@ -24,21 +24,21 @@ describe('create', () => {
2424 sandbox . restore ( ) ;
2525 } ) ;
2626
27- describe ( 'method ' , ( ) => {
27+ describe ( 'create ' , ( ) => {
2828 it ( 'should invoke `create <appPath>`' , async ( ) => {
29- await create ( { appPath : 'myApp' } ) ;
29+ await project . create ( { appPath : 'myApp' } ) ;
3030 sandbox . assert . calledWith ( spawnSpy , sinon . match . string , sinon . match . array . contains ( [ 'create' , 'myApp' ] ) ) ;
3131 } ) ;
3232 it ( 'should invoke `create <appPath> --template` if template specified' , async ( ) => {
33- await create ( { appPath : 'myApp' , template : 'slack-samples/deno-hello-world' } ) ;
33+ await project . create ( { appPath : 'myApp' , template : 'slack-samples/deno-hello-world' } ) ;
3434 sandbox . assert . calledWith (
3535 spawnSpy ,
3636 sinon . match . string ,
3737 sinon . match . array . contains ( [ 'create' , 'myApp' , '--template' , 'slack-samples/deno-hello-world' ] ) ,
3838 ) ;
3939 } ) ;
4040 it ( 'should invoke `create <appPath> --template --branch` if both template and branch specified' , async ( ) => {
41- await create ( { appPath : 'myApp' , template : 'slack-samples/deno-hello-world' , branch : 'feat-functions' } ) ;
41+ await project . create ( { appPath : 'myApp' , template : 'slack-samples/deno-hello-world' , branch : 'feat-functions' } ) ;
4242 sandbox . assert . calledWith (
4343 spawnSpy ,
4444 sinon . match . string ,
0 commit comments