-
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.
(fix) Fixes packages and tests for new version number 0.5.0
Signed-off-by: Jerome Simeon <[email protected]>
- Loading branch information
1 parent
73b8ab9
commit b30d9b4
Showing
32 changed files
with
48 additions
and
46 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
packages/cicero-cli/test/data/latedeliveryandpenalty/contract.json
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"$class":"org.accordproject.latedeliveryandpenalty.TemplateModel","clauseId":"d6752d72-04c4-4192-b85e-490507ff791e","forceMajeure":true,"penaltyDuration":{"$class":"org.accordproject.time.Duration","amount":9,"unit":"days"},"penaltyPercentage":7,"capPercentage":2,"termination":{"$class":"org.accordproject.time.Duration","amount":2,"unit":"weeks"},"fractionalPart":"days"} | ||
{"$class":"org.accordproject.latedeliveryandpenalty.TemplateModel","clauseId":"4efde0f6-06be-415e-ae0e-8e0ef21af65f","forceMajeure":true,"penaltyDuration":{"$class":"org.accordproject.time.Duration","amount":9,"unit":"days"},"penaltyPercentage":7,"capPercentage":2,"termination":{"$class":"org.accordproject.time.Duration","amount":2,"unit":"weeks"},"fractionalPart":"days"} |
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 |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
"cicero": { | ||
"template": "clause", | ||
"language": "ergo", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |
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
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 |
---|---|---|
|
@@ -4,6 +4,6 @@ | |
"cicero": { | ||
"template": "contract", | ||
"language": "javascript", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
"cicero": { | ||
"template": "clause", | ||
"language": "javascript", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
"cicero": { | ||
"template": "clause", | ||
"language": "ergo", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
"cicero": { | ||
"template": "clause", | ||
"language": "javascript", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
"cicero": { | ||
"template": "clause", | ||
"language": "javascript", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -4,6 +4,6 @@ | |
"cicero": { | ||
"template": "contract", | ||
"language": "javascript", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |
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
Binary file not shown.
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 |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
"cicero": { | ||
"template": "clause", | ||
"language": "ergo", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
"cicero": { | ||
"template": "clause", | ||
"language": "javascript", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
"cicero": { | ||
"template": "clause", | ||
"language": "javascript", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
"cicero": { | ||
"template": "clause", | ||
"language": "javascript", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
"cicero": { | ||
"template": "clause", | ||
"language": "javascript", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
"cicero": { | ||
"template": "clause", | ||
"language": "javascript", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
"cicero": { | ||
"template": "clause", | ||
"language": "javascript", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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 |
---|---|---|
|
@@ -58,21 +58,22 @@ describe('TemplateLibrary', () => { | |
templateIndex.should.not.have.property('[email protected]'); | ||
}); | ||
|
||
it('should retrieve latest version index for cicero version 0.4.4', async function() { | ||
it('should retrieve latest version index for cicero version 0.5.0', async function() { | ||
const templateLibrary = new TemplateLibrary(); | ||
const templateIndex = await templateLibrary.getTemplateIndex({latestVersion: true, ciceroVersion: '0.4.4'}); | ||
const templateIndex = await templateLibrary.getTemplateIndex({latestVersion: true, ciceroVersion: '0.5.0'}); | ||
templateIndex.should.not.have.property('[email protected]'); | ||
templateIndex.should.not.have.property('[email protected]'); | ||
templateIndex.should.have.property('[email protected]'); | ||
templateIndex.should.not.have.property('[email protected]'); | ||
templateIndex.should.have.property('[email protected]'); | ||
}); | ||
}); | ||
|
||
describe('#getTemplate', () => { | ||
|
||
it('should retrieve a template', async function() { | ||
const templateLibrary = new TemplateLibrary(); | ||
const template = await templateLibrary.getTemplate('ap://helloworld@0.2.0#bf7346e1f60a721f5641b03f1747f0de78c181c10cbb1d27c4caeb9f2957cfa0'); | ||
template.getIdentifier().should.equal('helloworld@0.2.0'); | ||
const template = await templateLibrary.getTemplate('ap://helloworld@0.3.0#3c4ecb4aa622df34472c2e1fe91132f79df9e6619df66b4430a01445759ed8fa'); | ||
template.getIdentifier().should.equal('helloworld@0.3.0'); | ||
}); | ||
}); | ||
|
||
|
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
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
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 |
---|---|---|
|
@@ -7,6 +7,6 @@ | |
"cicero": { | ||
"template": "contract", | ||
"language": "ergo", | ||
"version": "^0.4.1" | ||
"version": "^0.5.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -7,6 +7,6 @@ | |
"cicero": { | ||
"template": "contract", | ||
"language": "javascript", | ||
"version": "^0.4.1" | ||
"version": "^0.5.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
"cicero": { | ||
"template": "clause", | ||
"language": "ergo", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
"cicero": { | ||
"template": "clause", | ||
"language": "javascript", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |
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
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
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 |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
"cicero": { | ||
"template": "clause", | ||
"language": "javascript", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -5,6 +5,6 @@ | |
"cicero": { | ||
"template": "clause", | ||
"language": "ergo", | ||
"version": "^0.4.0" | ||
"version": "^0.5.0" | ||
} | ||
} |