Skip to content

Commit

Permalink
Merge pull request #59 from vlad-ko/feature/js-test-code
Browse files Browse the repository at this point in the history
adding a file and a test
  • Loading branch information
vlad-ko committed Aug 23, 2024
2 parents 3312600 + 2a800ae commit 68e0167
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions resources/js/classes/person.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,8 @@
getPersonalData() {
return 'secret data';
}

getSomeMoreInfo() {
return 'more info';
}
}
4 changes: 4 additions & 0 deletions resources/js/classes/person.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@ test("Person class", ()=>{

test("Person class", ()=>{
expect(person.getPersonalData()).toBe('secret data');
})

test("Person class", ()=>{
expect(person.getSomeMoreInfo()).toBe('more info');
})

0 comments on commit 68e0167

Please sign in to comment.