mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 06:05:24 +00:00
fix(file-manager): prioritize file names in narrow lists (#1483)
* fix(file-manager): prioritize file names in narrow lists * test(css): exercise the configured PostCSS plugin chain * test(identity): preserve full Ed25519 public keys in fixtures * test(remote-desktop): always mutate ciphertext in tamper test
This commit is contained in:
1 parent
44f751a5e5
commit
c98003f90e
6 files changed
+27
-18
No files matched your search
@@ -41,8 +41,12 @@ describe("verifyToken", () => {
|
||||
expect(
|
||||
tokens.verifyToken(encode({ ...data, iv: iv.toString("base64") })),
|
||||
).toBeNull();
|
||||
const ciphertext = Buffer.from(data.value, "base64");
|
||||
ciphertext[0] ^= 0xff;
|
||||
expect(
|
||||
tokens.verifyToken(encode({ ...data, value: `A${data.value.slice(1)}` })),
|
||||
tokens.verifyToken(
|
||||
encode({ ...data, value: ciphertext.toString("base64") }),
|
||||
),
|
||||
).toBeNull();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user