From db5eae414c86a4367953c0345365d29988ebcc12 Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Tue, 31 May 2022 14:52:53 -0700 Subject: [PATCH] Fix user test --- src/models/user.ts | 3 ++- test/fixtures/.thelounge/sts-policies.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/models/user.ts b/src/models/user.ts index 95b6087c..ea2d39b0 100644 --- a/src/models/user.ts +++ b/src/models/user.ts @@ -19,7 +19,8 @@ class User { Object.defineProperty(this, "mode", { get() { - return String(this.modes[0]); + // eslint-disable-next-line @typescript-eslint/no-unsafe-return + return this.modes[0] || ""; }, }); diff --git a/test/fixtures/.thelounge/sts-policies.json b/test/fixtures/.thelounge/sts-policies.json index f91b6ce0..1858cf26 100644 --- a/test/fixtures/.thelounge/sts-policies.json +++ b/test/fixtures/.thelounge/sts-policies.json @@ -3,6 +3,6 @@ "host": "irc.example.com", "port": 7000, "duration": 3600, - "expires": 1654037133192 + "expires": 1654037554847 } ]