Skip to content

Commit

Permalink
Remove duplicate test and fix clasp push test (google#186)
Browse files Browse the repository at this point in the history
Signed-off-by: campionfellin <[email protected]>
  • Loading branch information
campionfellin authored and grant committed May 25, 2018
1 parent 02f8f27 commit 2b5da9b
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions tests/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,6 @@ describe.skip('Test clasp create function', () => {
});
});

describe.skip('Test clasp create <projectName> 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 <title> function', () => {
it('should create a new project named <title> correctly', () => {
spawnSync('rm', ['.clasp.json']);
Expand Down Expand Up @@ -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' },
Expand Down

0 comments on commit 2b5da9b

Please sign in to comment.