test: use LightNode interface

This commit is contained in:
fryorcraken.eth 2022-12-13 10:58:07 +11:00
parent c6b86a33bc
commit 9ac92ef99d
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 2 additions and 2 deletions

View File

@ -5,12 +5,12 @@ import {
getPredefinedBootstrapNodes, getPredefinedBootstrapNodes,
} from "@waku/core/lib/predefined_bootstrap_nodes"; } from "@waku/core/lib/predefined_bootstrap_nodes";
import { createLightNode } from "@waku/create"; import { createLightNode } from "@waku/create";
import type { PeerExchangeResponse, WakuFull } from "@waku/interfaces"; import type { LightNode, PeerExchangeResponse } from "@waku/interfaces";
import { Protocols } from "@waku/interfaces"; import { Protocols } from "@waku/interfaces";
import { expect } from "chai"; import { expect } from "chai";
describe("Peer Exchange: Node", () => { describe("Peer Exchange: Node", () => {
let waku: WakuFull; let waku: LightNode;
afterEach(async function () { afterEach(async function () {
!!waku && waku.stop().catch((e) => console.log("Waku failed to stop", e)); !!waku && waku.stop().catch((e) => console.log("Waku failed to stop", e));
}); });