Skip to content

Commit 2f64bd5

Browse files
author
Josh Eckhoff
committed
Added Settings test.
1 parent f97b3e4 commit 2f64bd5

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/unit/UserManagerSettings.spec.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,21 @@ describe("UserManagerSettings", function () {
201201
});
202202
});
203203

204+
describe("query_status_response_type", function() {
205+
it("should return value from initial settings", function() {
206+
let temp = 'type';
207+
let subject = new UserManagerSettings({
208+
query_status_response_type : temp
209+
});
210+
subject.query_status_response_type.should.equal(temp);
211+
});
212+
it("should use default value", function () {
213+
let subject = new UserManagerSettings({
214+
});
215+
subject.query_status_response_type.should.equal("id_token");
216+
});
217+
});
218+
204219
describe("stopCheckSessionOnError", function() {
205220
it("should return value from initial settings", function() {
206221
let subject = new UserManagerSettings({

0 commit comments

Comments
 (0)