Skip to content

Commit

Permalink
(test) Test for archive without archiveFile parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Jerome Simeon <[email protected]>
  • Loading branch information
jeromesimeon committed May 15, 2019
1 parent 82ad482 commit 3704842
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/cicero-cli/test/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,16 @@ describe('cicero-cli', () => {
fs.unlinkSync(archiveName);
});

it('should create a valid ergo archive with a default name', async () => {
const archiveName = '[email protected]';
const result = await Commands.archive('ergo', template, null);
result.should.eql(true);
const newTemplate = await Template.fromArchive(fs.readFileSync(archiveName));
newTemplate.should.not.be.null;
newTemplate.hasLogic().should.equal(true);
fs.unlinkSync(archiveName);
});

});

describe('#validateParseArgs', () => {
Expand Down

0 comments on commit 3704842

Please sign in to comment.