Skip to content

Commit baa9979

Browse files
committed
feat: Add a new function
1 parent bd2e048 commit baa9979

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

src/bmssp.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@ function printMessage(message) {
22
return message;
33
}
44

5-
export { printMessage };
5+
function processMessage(message) {
6+
// Process the message here
7+
return `Processed: ${message}`;
8+
}
9+
10+
export { printMessage, processMessage };

test/main.test.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ describe("printMessage", () => {
77
expect(printMessage(testValue)).toBe(testValue);
88
});
99
});
10+
11+
describe("processMessage", () => {
12+
test("processes a message and returns the processed result", () => {
13+
let testValue = "Hello, bmssp!! Testing..";
14+
expect(processMessage(testValue)).toBe(`Processed: ${testValue}`);
15+
});
16+
});

0 commit comments

Comments
 (0)