first-steps/sum.test.js

11 lines264 bytesCodeBlame

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

First steps1import { test } from "node:test";
2import assert from "node:assert/strict";
Add multiply function3import { sum, multiply } from "./sum.js";
First steps4
5test("adds two numbers", () => {
6 assert.equal(sum(2, 3), 5);
7});
Add multiply function8
9test("multiplies two numbers", () => {
10 assert.equal(multiply(2, 3), 6);
11});