fix typo in test.js (#490)

This commit is contained in:
Vse Mozhet Byt 2017-08-23 23:26:52 +03:00 committed by Andrey Lushnikov
parent 8fe2477850
commit 1458a3b3b5

View File

@ -1091,7 +1091,7 @@ describe('Page', function() {
const promises = elements.map(element => element.evaluate(e => e.textContent)); const promises = elements.map(element => element.evaluate(e => e.textContent));
expect(await Promise.all(promises)).toEqual(['A', 'B']); expect(await Promise.all(promises)).toEqual(['A', 'B']);
})); }));
it('should return ampty array if nothing is found', SX(async function() { it('should return empty array if nothing is found', SX(async function() {
await page.goto(EMPTY_PAGE); await page.goto(EMPTY_PAGE);
const elements = await page.$$('div'); const elements = await page.$$('div');
expect(elements.length).toBe(0); expect(elements.length).toBe(0);