From 3704842c20566c84dbcb937c99bcf9da5aa0c2d2 Mon Sep 17 00:00:00 2001 From: Jerome Simeon Date: Wed, 15 May 2019 18:33:46 -0400 Subject: [PATCH] (test) Test for archive without archiveFile parameter Signed-off-by: Jerome Simeon --- packages/cicero-cli/test/cli.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/cicero-cli/test/cli.js b/packages/cicero-cli/test/cli.js index 6b851e56a..3fda3bff3 100644 --- a/packages/cicero-cli/test/cli.js +++ b/packages/cicero-cli/test/cli.js @@ -127,6 +127,16 @@ describe('cicero-cli', () => { fs.unlinkSync(archiveName); }); + it('should create a valid ergo archive with a default name', async () => { + const archiveName = 'latedeliveryandpenalty@0.0.1.cta'; + 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', () => {