Simplify client overview access controls and layout
This commit is contained in:
@@ -2,7 +2,6 @@ import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
|
||||
import {
|
||||
accessTabForKey,
|
||||
connectionAction,
|
||||
copyText,
|
||||
formatConnectionDuration,
|
||||
@@ -94,16 +93,6 @@ test('copy uses the synchronous native path available on gateway HTTP', async ()
|
||||
assert.equal(textarea.removed, true);
|
||||
});
|
||||
|
||||
test('Gateway access tabs wrap with arrows and support Home and End', () => {
|
||||
const tabs = ['gateway', 'proxy'];
|
||||
|
||||
assert.equal(accessTabForKey(tabs, 'gateway', 'ArrowLeft'), 'proxy');
|
||||
assert.equal(accessTabForKey(tabs, 'proxy', 'ArrowRight'), 'gateway');
|
||||
assert.equal(accessTabForKey(tabs, 'proxy', 'Home'), 'gateway');
|
||||
assert.equal(accessTabForKey(tabs, 'gateway', 'End'), 'proxy');
|
||||
assert.equal(accessTabForKey(tabs, 'gateway', 'Enter'), 'gateway');
|
||||
});
|
||||
|
||||
test('subscription usage combines traffic and caps progress', () => {
|
||||
assert.deepEqual(subscriptionUsage({ upload: 30, download: 80, total: 100, expire: 2 }), {
|
||||
upload: 30,
|
||||
|
||||
Reference in New Issue
Block a user