Skip to content
⌘K
Explore
Download
Docs
Sign in
Sign up
flagon-io
/
automation-lab
public
Fork
1
Star
0
Scratch repository for testing automations.
Overview
Code
Issues
1
Pull requests
Workflows
Deployments
Insights
Files
Commits
Branches
Tags
Releases
Compare
Commit
Add subtract to math.js
g1t
bot
and
Claude
agent
committed
1w ago
Parent
1eadc99
Browse files
64168f3b360c
2
files
+7
−0
0/2 viewed
Files
Collapse all
Unified
Split
math.js
+6
−0
View
Blame
Viewed
4
4
}
5
5
6
6
module.exports = { add };
7
+
8
+
function subtract(a, b) {
9
+
return a - b;
10
+
}
11
+
12
+
module.exports.subtract = subtract;
test.js
+1
−0
View
Blame
Viewed
1
1
const assert = require("node:assert");
2
2
const math = require("./math");
3
+
assert.strictEqual(math.subtract(5, 3), 2);
3
4
4
5
assert.strictEqual(math.add(2, 3), 5);
5
6
if (math.multiply) assert.strictEqual(math.multiply(4, 5), 20);
Comments
Sign in
to comment.