Skip to content

Commit

Permalink
fix(test): remove global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmacdonald committed Aug 23, 2019
1 parent d3afa22 commit 53d2274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ test('lookup builders', ()=> {
expect.assertions(18);
let lookupFn = viaf[nameOfLookupFn];
expect(typeof lookupFn).toBe('function');
results = await lookupFn(queryString);
let results = await lookupFn(queryString);
expect(Array.isArray(results)).toBe(true);
expect(results.length).toBeLessThanOrEqual(expectedResultLength);
results.forEach(singleResult => {
Expand All @@ -74,7 +74,7 @@ test('lookup builders', ()=> {
})

// with no results
let results = await lookupFn(queryStringWithNoResults);
results = await lookupFn(queryStringWithNoResults);
expect(Array.isArray(results)).toBe(true);
expect(results.length).toBe(0);

Expand Down

0 comments on commit 53d2274

Please sign in to comment.