Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
Fix Map tests typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Pluckthun committed Dec 18, 2016
1 parent 5b0f9f2 commit b16f849
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/__tests__/Map.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,15 @@ describe('Map', () => {

describe('entries', () => {
it('should return an iterator for the entries of the structure', () => {
const keysIterator = new Map(obj).entries()
const entriesIterator = new Map(obj).entries()
const keys = Object.keys(obj)
const values = Object.keys(obj).map(key => obj[key])

let done = false
let i = 0

while (!done) {
const { value, done: _done } = keysIterator.next()
const { value, done: _done } = entriesIterator.next()
done = _done

if (value) {
Expand All @@ -185,6 +185,4 @@ describe('Map', () => {
expect(i).toBe(3)
})
})


})

0 comments on commit b16f849

Please sign in to comment.