feat: 支持主分组隐藏节点并保留排序
This commit is contained in:
@@ -47,6 +47,14 @@ test("existing v4 boots and custom nodes stay outside HY2 polling/auth while ret
|
||||
[91],
|
||||
);
|
||||
assert.equal((await store.listSubscriptionNodes()).length, 2);
|
||||
assert.deepEqual((await store.getSubscriptionSettings()).mainProxyGroupHiddenSlugs, []);
|
||||
await store.saveMainProxyGroupMemberSlugs(["existing-hy2"], ["existing-hy2"]);
|
||||
assert.deepEqual((await store.getSubscriptionSettings()).mainProxyGroupHiddenSlugs, ["existing-hy2"]);
|
||||
await store.saveMainProxyGroupMemberSlugs(["existing-custom"]);
|
||||
assert.deepEqual((await store.getSubscriptionSettings()).mainProxyGroupHiddenSlugs, ["existing-hy2"]);
|
||||
await store.saveMainProxyGroupMemberSlugs([], []);
|
||||
assert.deepEqual((await store.getSubscriptionSettings()).mainProxyGroupHiddenSlugs, []);
|
||||
|
||||
assert.equal(
|
||||
(await verifyNodeToken("existing-custom", "test-original-auth")).reason,
|
||||
"node_not_hy2",
|
||||
|
||||
Reference in New Issue
Block a user