Skip to content

Commit 0347cf9

Browse files
committed
Updated unit test to evaluate the return from the getKeys method. It will ensure that in the array key123 and abcKey are returned.
1 parent 1831bc7 commit 0347cf9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

test/angularLocalStorage.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,5 +161,10 @@ describe('angularLocalStorage module', function () {
161161
it('should return an array equaling the length of two', function () {
162162
expect(array.length).toEqual(2);
163163
});
164+
165+
it('should return the same keys that were put into storage', function() {
166+
expect(array.indexOf("key123")).toBeGreaterThan(-1);
167+
expect(array.indexOf("abcKey")).toBeGreaterThan(-1);
168+
});
164169
});
165170
});

0 commit comments

Comments
 (0)