Chain test #2
CQ-Depend: 360562
Change-Id: Idef5406bfa21f203294b783e254a566485ecebf6
diff --git a/src/main.js b/src/main.js
index 39a3f6e..d1ee9dc 100644
--- a/src/main.js
+++ b/src/main.js
@@ -4,4 +4,8 @@
export function subtract(a, b) {
return a - b;
-}
\ No newline at end of file
+}
+
+export function multiply(a, b) {
+ return a * b;
+}
diff --git a/src/main.test.js b/src/main.test.js
index 030a3e6..653b7b7 100644
--- a/src/main.test.js
+++ b/src/main.test.js
@@ -1,4 +1,4 @@
-import { add, subtract } from "./main";
+import { add, multiply, subtract } from "./main";
import { expect } from "@esm-bundle/chai";
describe("main tests", () => {
@@ -13,4 +13,8 @@
it("subtracts two number", () => {
expect(subtract(5, 3)).to.equal(2);
});
+
+ it("multiplies two number", () => {
+ expect(multiply(5, 3)).to.equal(15);
+ });
});