Skip to content

Commit

Permalink
Updated unit test to evaluate the return from the getKeys method. It …
Browse files Browse the repository at this point in the history
…will ensure that in the array key123 and abcKey are returned.
  • Loading branch information
hppycoder committed Jan 27, 2015
1 parent 1831bc7 commit 0347cf9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/angularLocalStorage.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,10 @@ describe('angularLocalStorage module', function () {
it('should return an array equaling the length of two', function () {
expect(array.length).toEqual(2);
});

it('should return the same keys that were put into storage', function() {
expect(array.indexOf("key123")).toBeGreaterThan(-1);
expect(array.indexOf("abcKey")).toBeGreaterThan(-1);
});
});
});

0 comments on commit 0347cf9

Please sign in to comment.