Skip to content

Commit

Permalink
fix native js test failing because of orcid
Browse files Browse the repository at this point in the history
  • Loading branch information
HLWeil committed Aug 11, 2023
1 parent 296de79 commit 732eb62
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions ARCtrl.sln
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "playground", "playground",
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "JavaScript", "JavaScript", "{913222CA-261F-49CB-A823-CC7C335F964A}"
ProjectSection(SolutionItems) = preProject
tests\JavaScript\ISA.Person.js = tests\JavaScript\ISA.Person.js
tests\JavaScript\Main.js = tests\JavaScript\Main.js
EndProjectSection
EndProject
Expand Down
6 changes: 4 additions & 2 deletions tests/JavaScript/ISA.Person.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ import { Comment$ as Comment } from "./ARCtrl/ISA/ISA/JsonTypes/Comment.js";
describe('ISA.Person', function () {
describe('copy', function () {
it('check mutable', function () {
const person = Person.create(void 0, "Frey", "Kevin", void 0, "[email protected]");
const person = Person.create(void 0, "0000-0002-1825-0097", "Frey", "Kevin", void 0, "[email protected]");
const copy = person.Copy()
equal(person.ORCID, "0000-0002-1825-0097")
equal(copy.ORCID, "0000-0002-1825-0097")
equal(person.FirstName, "Kevin");
equal(copy.FirstName, "Kevin");
person.FirstName = "NotKevin"
Expand All @@ -15,7 +17,7 @@ describe('ISA.Person', function () {
});
it('check nested mutable', function(){
const comment = Comment.fromString("TestKey", "TestValue")
const person = Person.create(void 0, "Frey", "Kevin", void 0, "[email protected]", void 0, void 0, void 0, void 0, void 0, [comment]);
const person = Person.create(void 0, void 0, "Frey", "Kevin", void 0, "[email protected]", void 0, void 0, void 0, void 0, void 0, [comment]);
const copy = person.Copy()
equal(person.Comments.length,1)
deepEqual(person.Comments,copy.Comments, "Should be same")
Expand Down

0 comments on commit 732eb62

Please sign in to comment.