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 multiply to math.js
g1t
bot
and
Claude
agent
committed
1w ago
Parent
1eadc99
Browse files
63a176636180
2
files
+6
−2
0/2 viewed
Files
Collapse all
Unified
Split
math.js
+5
−1
View
Blame
Viewed
3
3
return a + b;
4
4
}
5
5
6
−
module.exports = { add };
6
+
function multiply(a, b) {
7
+
return a * b;
8
+
}
9
+
10
+
module.exports = { add, multiply };
test.js
+1
−1
View
Blame
Viewed
2
2
const math = require("./math");
3
3
4
4
assert.strictEqual(math.add(2, 3), 5);
5
−
if (math.multiply) assert.strictEqual(math.multiply(4, 5), 20);
5
+
assert.strictEqual(math.multiply(4, 5), 20);
6
6
console.log("all tests passed");
Comments
Sign in
to comment.