Skip to content

Commit

Permalink
js: Add tests in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-mman committed Feb 19, 2025
1 parent 19ea155 commit f48c73b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/javascript-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,8 @@ jobs:
run: |
cd javascript
yarn run lint
- name: Test
run: |
cd javascript
yarn run test
1 change: 0 additions & 1 deletion javascript/src/mockttp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ describe("mockttp tests", () => {
await svx.message.list("app1", { eventTypes: ["val8", "val1", "val5"] });
const requests = await endpointMock.getSeenRequests();
expect(requests.length).toBe(1);
console.log(requests[0].url);
expect(
requests[0].url.endsWith("/api/v1/app/app1/msg?event_types=val8%2Cval1%2Cval5")
).toBe(true);
Expand Down

0 comments on commit f48c73b

Please sign in to comment.