Skip to content

Commit

Permalink
Merge pull request #1 from prowe/test-branch
Browse files Browse the repository at this point in the history
changing response
  • Loading branch information
prowe authored Sep 30, 2024
2 parents 858ee2a + ad838cb commit 7454729
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
run-tests:
Expand Down
4 changes: 2 additions & 2 deletions hello-world/hello-world.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export function handler(event) {
export function handler() {
return {
body: "Hello World",
message: "Hello World",
};
}
4 changes: 3 additions & 1 deletion hello-world/hello-world.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ import { handler } from "./hello-world";

it("should return the greeting", async () => {
var resp = await handler({});
expect(resp.body).toEqual("Hello World");
expect(resp).toEqual({
message: "Hello World",
});
});

0 comments on commit 7454729

Please sign in to comment.