Skip to content

Commit c05113e

Browse files
committed
add test for custom prompt to signInSilent
1 parent d6eb492 commit c05113e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/unit/UserManager.spec.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,18 @@ describe("UserManager", function () {
121121
}
122122
subject.signinSilent({silentRequestTimeout:234});
123123
});
124+
125+
it("should pass prompt from params", function(done){
126+
127+
settings.silent_redirect_uri = "http://client/silent_callback";
128+
subject = new UserManager(settings);
129+
130+
subject._signin = function(args, nav, navArgs){
131+
args.prompt.should.equal("foo");
132+
done();
133+
}
134+
subject.signinSilent({prompt:"foo"});
135+
});
124136
});
125137

126138
});

0 commit comments

Comments
 (0)