Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
Added additional assertions to confirm that data exists before invali…
Browse files Browse the repository at this point in the history
…dation.
  • Loading branch information
davepgreene committed Dec 5, 2016
1 parent 763ebf1 commit a439fb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/provider-generic.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ describe('Provider/Generic', function() {
g._method = 'read';

return g.initialize().then(() => {
should(g.data).not.be.null();
g.invalidate();
should(g.data).be.null();
});
Expand Down
1 change: 1 addition & 0 deletions test/provider-token.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ describe('Provider/Token', function() {
nock(`http://${this.warden.host}:${this.warden.port}/`).post().once().reply(STATUS_CODES.OK, resp);

return this.token.initialize().then(() => {
should(this.token.data).not.be.null();
this.token.invalidate();
should(this.token.data).be.null();
});
Expand Down

0 comments on commit a439fb3

Please sign in to comment.