13
13
* See the License for the specific language governing permissions and
14
14
* limitations under the License.
15
15
*/
16
- import * as fs from 'fs-extra' ;
17
16
import spawn from 'cross-spawn' ;
17
+ import * as fs from 'fs-extra' ;
18
18
import { ClaspHelper } from '../src/clasp-helper' ;
19
19
20
20
jest . mock ( 'fs-extra' ) ;
@@ -136,7 +136,7 @@ describe('clasp-helper', () => {
136
136
} ) ;
137
137
138
138
it ( 'extracts sheets link' , ( ) => {
139
- const output = 'New Google Sheet : https://drive.google.com/abc123' ;
139
+ const output = 'Created new document : https://drive.google.com/abc123' ;
140
140
141
141
const res = claspHelper . extractSheetsLink ( output ) ;
142
142
@@ -152,8 +152,7 @@ describe('clasp-helper', () => {
152
152
} ) ;
153
153
154
154
it ( 'extracts script link' , ( ) => {
155
- const output =
156
- 'New Google Sheets Add-on script: https://drive.google.com/abc123' ;
155
+ const output = 'Created new script: https://drive.google.com/abc123' ;
157
156
158
157
const res = claspHelper . extractScriptLink ( output ) ;
159
158
@@ -168,10 +167,7 @@ describe('clasp-helper', () => {
168
167
169
168
await claspHelper . arrangeFiles ( 'rootDir' ) ;
170
169
171
- expect ( fsMoveSpy ) . toHaveBeenCalledWith (
172
- 'rootDir/.clasp.json' ,
173
- '.clasp-dev.json'
174
- ) ;
170
+ expect ( fsMoveSpy ) . toHaveBeenCalledWith ( '.clasp.json' , '.clasp-dev.json' ) ;
175
171
176
172
expect ( fsMoveSpy ) . toHaveBeenCalledWith (
177
173
'rootDir/appsscript.json' ,
0 commit comments