mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-16 20:11:08 +00:00
13 lines
462 B
TypeScript
13 lines
462 B
TypeScript
import assert from "node:assert/strict";
|
|
import test from "node:test";
|
|
|
|
import {
|
|
getAppLockErrorMessageKey,
|
|
} from "./AppLockOverlay.tsx";
|
|
|
|
test("getAppLockErrorMessageKey maps unlock errors to localized message keys", () => {
|
|
assert.equal(getAppLockErrorMessageKey("empty"), "appLock.error.emptyPassword");
|
|
assert.equal(getAppLockErrorMessageKey("incorrect"), "appLock.error.incorrectPassword");
|
|
assert.equal(getAppLockErrorMessageKey(null), null);
|
|
});
|