mirror of
https://github.com/wkulhanek/bonob.git
synced 2025-12-21 17:33:29 +01:00
Ability to define auth timeout (#82)
This commit is contained in:
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user