Skip to content

Commit

Permalink
Fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rennokki committed Jul 11, 2023
1 parent 50399a9 commit 5edee08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/pusher/ws.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ describe('pusher/ws', () => {

await metrics.snapshot(app.id);
expect(await metrics.get(app.id)).toEqual({
connections: 1,
total_connections: 1,
channels: [{
channel: 'test',
connections: 1,
Expand All @@ -261,7 +261,7 @@ describe('pusher/ws', () => {

await metrics.snapshot(app.id);
expect(await metrics.get(app.id)).toEqual({
connections: 1,
total_connections: 1,
channels: [],
users: [],
started: conns.started.toISOString(),
Expand All @@ -271,7 +271,7 @@ describe('pusher/ws', () => {

await metrics.snapshot(app.id);
expect(await metrics.get(app.id)).toEqual({
connections: 0,
total_connections: 0,
channels: [],
users: [],
started: conns.started.toISOString(),
Expand Down
2 changes: 1 addition & 1 deletion tests/ws/router.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe('ws/router', () => {

await metrics.snapshot('test');
expect(await metrics.get('test')).toEqual({
connections: 1,
total_connections: 1,
});

expect(await metrics.get('test2')).toEqual({});
Expand Down

0 comments on commit 5edee08

Please sign in to comment.