Skip to content

Commit

Permalink
Add spec for AuthorizationManager.hasPendingServices
Browse files Browse the repository at this point in the history
  • Loading branch information
tejaede committed Jan 9, 2019
1 parent f294d17 commit c684dde
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/spec/data/authorization-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,17 @@ describe("An Authorization Manager", function () {
});


it("can track has pending services", function () {
expect(authorizationManager).toBeDefined();
expect(authorizationManager.hasPendingServices).toBe(false);
authorizationManager._pendingServices.add("a/test/authorization-service");
expect(authorizationManager.hasPendingServices).toBe(true);
authorizationManager._pendingServices.add("b/test/authorization-service");
expect(authorizationManager.hasPendingServices).toBe(true);
authorizationManager._pendingServices.clear();
expect(authorizationManager.hasPendingServices).toBe(false);
});



describe("can skip authorization", function () {
Expand Down

0 comments on commit c684dde

Please sign in to comment.