File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,7 @@ class ContractTemplate
17
17
test : () -> 0
18
18
19
19
template : (inputJsonFile , directory ) =>
20
- # @todo Read input json file
21
- testLatePenaltyInput = {
22
- " $class" : " org.accordproject.helloworld.HelloWorldClause" ,
23
- " name" : " Philip" ,
24
- " clauseId" : " 427c99b0-6df4-11e8-bb3b-67a2e79acc24"
25
- }
26
-
20
+ testLatePenaltyInput = JSON .parse (fs .readFileSync (inputJsonFile, ' utf8' ))
27
21
template = await Template .fromDirectory (directory)
28
22
clause = new Clause (template)
29
23
clause .setData testLatePenaltyInput
Original file line number Diff line number Diff line change 1
- call run template json .json " C:\home\projects\accord\cicero-template-library\src\helloworld"
1
+ call run template test_template .json " C:\home\projects\accord\cicero-template-library\src\helloworld"
2
2
Original file line number Diff line number Diff line change
1
+ {
2
+ "$class" : " org.accordproject.helloworld.HelloWorldClause" ,
3
+ "name" : " Philip" ,
4
+ "clauseId" : " 427c99b0-6df4-11e8-bb3b-67a2e79acc24"
5
+ }
You can’t perform that action at this time.
0 commit comments