Skip to content

Commit

Permalink
test: token in init event payload is undefined not null
Browse files Browse the repository at this point in the history
Doesn't matter which, code happens to emit undefined.
Adapt test expectation over writing strange || null code.
The conditional just checks for a falsey value.
  • Loading branch information
brunnre8 committed Apr 21, 2024
1 parent 1ed379e commit a2e197c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/server.ts
Expand Up @@ -151,7 +151,7 @@ describe("Server", function () {
expect(data.active).to.equal(-1);
expect(data.networks).to.be.an("array");
expect(data.networks).to.be.empty;
expect(data.token).to.be.null;
expect(data.token).to.be.undefined;

done();
});
Expand Down

0 comments on commit a2e197c

Please sign in to comment.