Skip to content
⌘K
Explore
Download
Docs
Sign in
Sign up
flagon-io
/
automation-lab
public
Star
0
Overview
Code
Issues
1
Pull requests
Workflows
Deployments
Insights
Files
Commits
Branches
Tags
Releases
Compare
09400819f66912609af6bb607adb460294d686ab
automation-lab
/
test.js
8 lines
286 bytes
Code
Blame
Raw
1
const
assert
=
require
(
"
node:assert
"
);
2
const
math
=
require
(
"
./math
"
);
3
4
assert
.
strictEqual
(
math
.
add
(
2
,
3
),
5
);
5
assert
.
strictEqual
(
math
.
multiply
(
4
,
5
),
20
);
6
assert
.
strictEqual
(
math
.
divide
(
10
,
4
),
2.5
);
7
assert
.
throws
(()
=>
math
.
divide
(
1
,
0
),
RangeError
);
8
console
.
log
(
"
all tests passed
"
);