mirror of https://github.com/waku-org/js-waku.git
chore(tests): move filter and lp tests to subdir (#1800)
This commit is contained in:
parent
2e6d9836bf
commit
d3bd7f8f7c
|
@ -20,9 +20,8 @@ import {
|
||||||
MessageCollector,
|
MessageCollector,
|
||||||
ServiceNode,
|
ServiceNode,
|
||||||
tearDownNodes
|
tearDownNodes
|
||||||
} from "../../src/index.js";
|
} from "../../../src/index.js";
|
||||||
|
import { runNodes } from "../utils.js";
|
||||||
import { runNodes } from "./utils.js";
|
|
||||||
|
|
||||||
describe("Waku Filter V2: Multiple PubsubTopics", function () {
|
describe("Waku Filter V2: Multiple PubsubTopics", function () {
|
||||||
// Set the timeout for all tests in this suite. Can be overwritten at test level
|
// Set the timeout for all tests in this suite. Can be overwritten at test level
|
|
@ -7,15 +7,14 @@ import {
|
||||||
MessageCollector,
|
MessageCollector,
|
||||||
ServiceNode,
|
ServiceNode,
|
||||||
tearDownNodes
|
tearDownNodes
|
||||||
} from "../../src/index.js";
|
} from "../../../src/index.js";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
runNodes,
|
runNodes,
|
||||||
TestContentTopic,
|
TestContentTopic,
|
||||||
TestDecoder,
|
TestDecoder,
|
||||||
TestEncoder,
|
TestEncoder,
|
||||||
validatePingError
|
validatePingError
|
||||||
} from "./utils.js";
|
} from "../utils.js";
|
||||||
|
|
||||||
describe("Waku Filter V2: Ping", function () {
|
describe("Waku Filter V2: Ping", function () {
|
||||||
// Set the timeout for all tests in this suite. Can be overwritten at test level
|
// Set the timeout for all tests in this suite. Can be overwritten at test level
|
|
@ -12,15 +12,14 @@ import {
|
||||||
tearDownNodes,
|
tearDownNodes,
|
||||||
TEST_STRING,
|
TEST_STRING,
|
||||||
TEST_TIMESTAMPS
|
TEST_TIMESTAMPS
|
||||||
} from "../../src/index.js";
|
} from "../../../src/index.js";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
messageText,
|
messageText,
|
||||||
runNodes,
|
runNodes,
|
||||||
TestContentTopic,
|
TestContentTopic,
|
||||||
TestDecoder,
|
TestDecoder,
|
||||||
TestEncoder
|
TestEncoder
|
||||||
} from "./utils.js";
|
} from "../utils.js";
|
||||||
|
|
||||||
describe("Waku Filter V2: FilterPush", function () {
|
describe("Waku Filter V2: FilterPush", function () {
|
||||||
// Set the timeout for all tests in this suite. Can be overwritten at test level
|
// Set the timeout for all tests in this suite. Can be overwritten at test level
|
|
@ -20,8 +20,7 @@ import {
|
||||||
ServiceNode,
|
ServiceNode,
|
||||||
tearDownNodes,
|
tearDownNodes,
|
||||||
TEST_STRING
|
TEST_STRING
|
||||||
} from "../../src/index.js";
|
} from "../../../src/index.js";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
messagePayload,
|
messagePayload,
|
||||||
messageText,
|
messageText,
|
||||||
|
@ -29,7 +28,7 @@ import {
|
||||||
TestContentTopic,
|
TestContentTopic,
|
||||||
TestDecoder,
|
TestDecoder,
|
||||||
TestEncoder
|
TestEncoder
|
||||||
} from "./utils.js";
|
} from "../utils.js";
|
||||||
|
|
||||||
describe("Waku Filter V2: Subscribe", function () {
|
describe("Waku Filter V2: Subscribe", function () {
|
||||||
// Set the timeout for all tests in this suite. Can be overwritten at test level
|
// Set the timeout for all tests in this suite. Can be overwritten at test level
|
|
@ -9,8 +9,7 @@ import {
|
||||||
MessageCollector,
|
MessageCollector,
|
||||||
ServiceNode,
|
ServiceNode,
|
||||||
tearDownNodes
|
tearDownNodes
|
||||||
} from "../../src/index.js";
|
} from "../../../src/index.js";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
messagePayload,
|
messagePayload,
|
||||||
messageText,
|
messageText,
|
||||||
|
@ -18,7 +17,7 @@ import {
|
||||||
TestContentTopic,
|
TestContentTopic,
|
||||||
TestDecoder,
|
TestDecoder,
|
||||||
TestEncoder
|
TestEncoder
|
||||||
} from "./utils.js";
|
} from "../utils.js";
|
||||||
|
|
||||||
describe("Waku Filter V2: Unsubscribe", function () {
|
describe("Waku Filter V2: Unsubscribe", function () {
|
||||||
// Set the timeout for all tests in this suite. Can be overwritten at test level
|
// Set the timeout for all tests in this suite. Can be overwritten at test level
|
|
@ -14,15 +14,14 @@ import {
|
||||||
ServiceNode,
|
ServiceNode,
|
||||||
tearDownNodes,
|
tearDownNodes,
|
||||||
TEST_STRING
|
TEST_STRING
|
||||||
} from "../../src/index.js";
|
} from "../../../src/index.js";
|
||||||
|
|
||||||
import {
|
import {
|
||||||
messagePayload,
|
messagePayload,
|
||||||
messageText,
|
messageText,
|
||||||
runNodes,
|
runNodes,
|
||||||
TestContentTopic,
|
TestContentTopic,
|
||||||
TestEncoder
|
TestEncoder
|
||||||
} from "./utils.js";
|
} from "../utils.js";
|
||||||
|
|
||||||
describe("Waku Light Push", function () {
|
describe("Waku Light Push", function () {
|
||||||
// Set the timeout for all tests in this suite. Can be overwritten at test level
|
// Set the timeout for all tests in this suite. Can be overwritten at test level
|
|
@ -20,9 +20,8 @@ import {
|
||||||
MessageCollector,
|
MessageCollector,
|
||||||
ServiceNode,
|
ServiceNode,
|
||||||
tearDownNodes
|
tearDownNodes
|
||||||
} from "../../src/index.js";
|
} from "../../../src/index.js";
|
||||||
|
import { messageText, runNodes } from "../utils.js";
|
||||||
import { messageText, runNodes } from "./utils.js";
|
|
||||||
|
|
||||||
describe("Waku Light Push : Multiple PubsubTopics", function () {
|
describe("Waku Light Push : Multiple PubsubTopics", function () {
|
||||||
this.timeout(30000);
|
this.timeout(30000);
|
Loading…
Reference in New Issue