From 2b5da9b5ca5fc8335ff8b43c202d6be55a96de30 Mon Sep 17 00:00:00 2001 From: Campion Fellin Date: Fri, 25 May 2018 08:30:19 -0700 Subject: [PATCH] Remove duplicate test and fix clasp push test (#186) Signed-off-by: campionfellin --- tests/test.ts | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/tests/test.ts b/tests/test.ts index 38d31648..1bbaadc1 100644 --- a/tests/test.ts +++ b/tests/test.ts @@ -50,17 +50,6 @@ describe.skip('Test clasp create function', () => { }); }); -describe.skip('Test clasp create function', () => { - it('should create a new project correctly', () => { - spawnSync('rm', ['.clasp.json']); - const result = spawnSync( - 'clasp', ['create', 'sampleProject'], { encoding: 'utf8' }, - ); - expect(result.stdout).to.contain('Created new script: https://script.google.com/d/'); - expect(result.status).to.equal(0); - }); -}); - describe.skip('Test clasp create function', () => { it('should create a new project named <title> correctly', () => { spawnSync('rm', ['.clasp.json']); @@ -106,7 +95,7 @@ describe.skip('Test clasp push function', () => { expect(result.status).to.equal(0); }); it('should return non-0 exit code when push failed', () => { - fs.writeFileSync('.claspignore', '**/**\n!Code.js\n!appsscript.json'); + fs.writeFileSync('.claspignore', '**/**\n!Code.js\n!appsscript.json\n!unexpected_file'); fs.writeFileSync('unexpected_file', ''); const result = spawnSync( 'clasp', ['push'], { encoding: 'utf8' },