Skip to content

Commit 66ca1a9

Browse files
Fix tests
1 parent 4788c85 commit 66ca1a9

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

test/clasp-helper.test.ts

+4-8
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import * as fs from 'fs-extra';
1716
import spawn from 'cross-spawn';
17+
import * as fs from 'fs-extra';
1818
import { ClaspHelper } from '../src/clasp-helper';
1919

2020
jest.mock('fs-extra');
@@ -136,7 +136,7 @@ describe('clasp-helper', () => {
136136
});
137137

138138
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';
140140

141141
const res = claspHelper.extractSheetsLink(output);
142142

@@ -152,8 +152,7 @@ describe('clasp-helper', () => {
152152
});
153153

154154
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';
157156

158157
const res = claspHelper.extractScriptLink(output);
159158

@@ -168,10 +167,7 @@ describe('clasp-helper', () => {
168167

169168
await claspHelper.arrangeFiles('rootDir');
170169

171-
expect(fsMoveSpy).toHaveBeenCalledWith(
172-
'rootDir/.clasp.json',
173-
'.clasp-dev.json'
174-
);
170+
expect(fsMoveSpy).toHaveBeenCalledWith('.clasp.json', '.clasp-dev.json');
175171

176172
expect(fsMoveSpy).toHaveBeenCalledWith(
177173
'rootDir/appsscript.json',

test/package-helper.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ describe('package-helper', () => {
7373
keywords: [],
7474
scripts: {},
7575
engines: {
76-
node: '>=12',
76+
node: '>=22',
7777
},
7878
});
7979
});

0 commit comments

Comments
 (0)