-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(test) Test for archive without archiveFile parameter
Signed-off-by: Jerome Simeon <[email protected]>
- Loading branch information
1 parent
82ad482
commit 3704842
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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', () => { | ||
|