mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix typo in test.js (#490)
This commit is contained in:
parent
8fe2477850
commit
1458a3b3b5
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user