Ability to define auth timeout (#82)

This commit is contained in:
Simon J
2021-12-02 14:24:44 +11:00
committed by GitHub
parent d1300b8119
commit 8a0140b728
4 changed files with 15 additions and 2 deletions

View File

@@ -262,6 +262,17 @@ describe("config", () => {
});
});
describe("authTimeout", () => {
it("should default to 1h", () => {
expect(config().authTimeout).toEqual("1h");
});
it(`should be overridable using BNB_AUTH_TIMEOUT`, () => {
process.env["BNB_AUTH_TIMEOUT"] = "33s";
expect(config().authTimeout).toEqual("33s");
});
});
describe("sonos", () => {
describe("serviceName", () => {
it("should default to bonob", () => {