summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/backend/test/utils.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/backend/test/utils.ts b/packages/backend/test/utils.ts
index 4e98f13328..5eb4ed3b01 100644
--- a/packages/backend/test/utils.ts
+++ b/packages/backend/test/utils.ts
@@ -100,9 +100,9 @@ export function connectStream(user: any, channel: string, listener: (message: Re
ws.on('open', () => {
ws.on('message', data => {
const msg = JSON.parse(data.toString());
- if (msg.type == 'channel' && msg.body.id == 'a') {
+ if (msg.type === 'channel' && msg.body.id === 'a') {
listener(msg.body);
- } else if (msg.type == 'connected' && msg.body.id == 'a') {
+ } else if (msg.type === 'connected' && msg.body.id === 'a') {
res(ws);
}
});