UNPKG
@revoloo/cypress6
Version:
latest (1.0.0)
1.0.0
Cypress.io end to end testing tool
github.com/cypress-io/cypress
cypress-io/cypress
@revoloo/cypress6
/
npm
/
vue
/
cypress
/
component
/
basic
/
code-coverage
/
calc.js
16 lines
(12 loc)
•
218 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
export
const
add
= (
a, b
) => {
return
a + b }
export
const
sub
= (
a, b
) => {
return
a - b }
export
const
div
= (
a, b
) => {
if
(b ===
0
) {
throw
new
Error
(
`Cannot divide
${a}
by zero`
) }
return
a / b }