-
Notifications
You must be signed in to change notification settings - Fork 311
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adjusted the signup js file so the throw error properly returns an ob…
…ject instead of a string, I then wrote a test function for it using jest
- Loading branch information
1 parent
d04b45d
commit 25dc3b9
Showing
12 changed files
with
468 additions
and
119 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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
*.swp | ||
*.swo | ||
.cache | ||
test.yml | ||
|
||
# IntelliJ Idea | ||
.idea | ||
|
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,14 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<coverage generated="1711820589098" clover="3.2.0"> | ||
<project timestamp="1711820589098" name="All files"> | ||
<metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3" elements="8" coveredelements="8" complexity="0" loc="5" ncloc="5" packages="1" files="1" classes="1"/> | ||
<file name="itemManager.js" path="C:\Users\Gbenga\Desktop\caMicroscope\itemManager.js"> | ||
<metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/> | ||
<line num="1" count="1" type="stmt"/> | ||
<line num="4" count="10" type="stmt"/> | ||
<line num="8" count="4" type="stmt"/> | ||
<line num="12" count="3" type="stmt"/> | ||
<line num="15" count="1" type="stmt"/> | ||
</file> | ||
<coverage generated="1711830305848" clover="3.2.0"> | ||
<project timestamp="1711830305849" name="All files"> | ||
<metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0" elements="0" coveredelements="0" complexity="0" loc="0" ncloc="0" packages="0" files="0" classes="0"/> | ||
</project> | ||
</coverage> |
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,2 +1 @@ | ||
{"C:\\Users\\Gbenga\\Desktop\\caMicroscope\\itemManager.js": {"path":"C:\\Users\\Gbenga\\Desktop\\caMicroscope\\itemManager.js","statementMap":{"0":{"start":{"line":1,"column":15},"end":{"line":1,"column":17}},"1":{"start":{"line":4,"column":2},"end":{"line":4,"column":22}},"2":{"start":{"line":8,"column":2},"end":{"line":8,"column":16}},"3":{"start":{"line":12,"column":2},"end":{"line":12,"column":18}},"4":{"start":{"line":15,"column":0},"end":{"line":19,"column":2}}},"fnMap":{"0":{"name":"addItem","decl":{"start":{"line":3,"column":9},"end":{"line":3,"column":16}},"loc":{"start":{"line":3,"column":23},"end":{"line":5,"column":1}},"line":3},"1":{"name":"clearList","decl":{"start":{"line":7,"column":9},"end":{"line":7,"column":18}},"loc":{"start":{"line":7,"column":21},"end":{"line":9,"column":1}},"line":7},"2":{"name":"getList","decl":{"start":{"line":11,"column":9},"end":{"line":11,"column":16}},"loc":{"start":{"line":11,"column":19},"end":{"line":13,"column":1}},"line":11}},"branchMap":{},"s":{"0":1,"1":10,"2":4,"3":3,"4":1},"f":{"0":10,"1":4,"2":3},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"b4108b44f51ab0a0ac5ca8a54e0fc27f7d376595"} | ||
} | ||
{} |
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 |
---|---|---|
@@ -1,20 +0,0 @@ | ||
TN: | ||
SF:itemManager.js | ||
FN:3,addItem | ||
FN:7,clearList | ||
FN:11,getList | ||
FNF:3 | ||
FNH:3 | ||
FNDA:10,addItem | ||
FNDA:4,clearList | ||
FNDA:3,getList | ||
DA:1,1 | ||
DA:4,10 | ||
DA:8,4 | ||
DA:12,3 | ||
DA:15,1 | ||
LF:5 | ||
LH:5 | ||
BRF:0 | ||
BRH:0 | ||
end_of_record | ||
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// jest.config.js | ||
|
||
module.exports = { | ||
testEnvironment: 'jsdom', | ||
|
||
}; |
Oops, something went wrong.