test: token in init event payload is undefined not null

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.
This commit is contained in:
Reto Brunner 2024-04-21 14:00:42 +02:00
parent 5567f07a7c
commit 8372c5a57e

View file

@ -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();
});