coverage-test

This commit is contained in:
Tom Hu
2021-01-02 18:19:58 -05:00
parent a0e7a095bd
commit 25cb7e3abf
4 changed files with 34 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
export default class Coverage {
//This function is tested and part of it is uncovered
uncovered_if = (a = true) => {
if (a == true) {
return false
} else {
return true
}
}
//This function will be fully covered
fully_covered = () => {
return true
}
//This function will not be tested by unit tests
uncovered = () => {
return true
}
}