Skip to content

Commit

Permalink
Tweak integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
benfrancis committed Aug 18, 2021
1 parent ee82cc4 commit 65d314a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/integration/things-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1055,7 +1055,7 @@ describe('things/', function () {
e2p(eventSource, 'overheated'),
]);
expect(event.type).toEqual('overheated');
expect(event.data).toEqual('101');
expect(JSON.parse(event.data)).toEqual(101);
eventSource.close();

// Test events subscription
Expand All @@ -1070,7 +1070,7 @@ describe('things/', function () {
e2p(eventsSource, 'overheated'),
]);
expect(event2.type).toEqual('overheated');
expect(event2.data).toEqual('101');
expect(JSON.parse(event2.data)).toEqual(101);
eventsSource.close();

// Test non-existent thing errors
Expand Down

0 comments on commit 65d314a

Please sign in to comment.