diff --git a/.stylelintrc b/.stylelintrc index c0b540d69..adf42a219 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -12,6 +12,7 @@ "shorthand-property-no-redundant-values": null, "color-hex-length": null, "declaration-block-no-redundant-longhand-properties": null, - "at-rule-no-unknown": null + "at-rule-no-unknown": null, + "function-no-unknown": null } } diff --git a/src/mixins/socket.js b/src/mixins/socket.js index d63321fa4..47967437c 100644 --- a/src/mixins/socket.js +++ b/src/mixins/socket.js @@ -398,6 +398,7 @@ export default { /** * Show a warning toast * @param {string} msg Message to show + * @param {...any} args Additional parameters for translation interpolation * @returns {void} */ toastWarning(msg, ...args) { diff --git a/test/backend-test/test-password-util.js b/test/backend-test/test-password-util.js index d383817f7..49068954f 100644 --- a/test/backend-test/test-password-util.js +++ b/test/backend-test/test-password-util.js @@ -104,7 +104,8 @@ describe("Password Validation (NIST-aligned)", () => { const result = await validatePassword("password123456", true); assert.strictEqual(result.ok, true); assert.ok(result.warning, "Should have a warning for breached password"); - assert.match(result.warning, /data breaches/i); + assert.strictEqual(result.warning.msg, "passwordFoundInDataBreach"); + assert.ok(result.warning.meta > 0, "Should have breach count greater than 0"); }); test("should accept non-breached password with no warning", async () => {