mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 15:33:12 +09:00
Remove tests that pin implementation details
Drops tests that restate message declarations, check that removed commands are gone, test internal helpers or repeat the same behaviour at another layer.
This commit is contained in:
10 files changed
+1
-464
No files matched your search
@@ -55,18 +55,6 @@ describe("web_ui/util/host_pairing", function() {
|
||||
));
|
||||
});
|
||||
|
||||
it("should check the permission after the connect handlers have run", async function() {
|
||||
subscriber.subscribe(() => {});
|
||||
await events.once(mockControl.connector, "send");
|
||||
mockControl.connector.sentMessages.length = 0;
|
||||
|
||||
permitted = false;
|
||||
mockControl.connector.emit("connect");
|
||||
permitted = true;
|
||||
await settle();
|
||||
assert.equal(sentRequests().length, 1);
|
||||
});
|
||||
|
||||
it("should resubscribe on account updates with permission", async function() {
|
||||
subscriber.subscribe(() => {});
|
||||
await events.once(mockControl.connector, "send");
|
||||
@@ -128,15 +116,5 @@ describe("web_ui/util/host_pairing", function() {
|
||||
assert.equal(subscriber.values.size, 1);
|
||||
assert.equal(subscriber.lastUpdatedMs, 10);
|
||||
});
|
||||
|
||||
it("should set synced false on drop and close", async function() {
|
||||
subscriber.synced = true;
|
||||
subscriber.handleConnectionEvent("drop");
|
||||
assert.equal(subscriber.synced, false);
|
||||
|
||||
subscriber.synced = true;
|
||||
subscriber.handleConnectionEvent("close");
|
||||
assert.equal(subscriber.synced, false);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user