chore: migrate src/Puppeteer to TypeScript (#5789)

* chore: migrate src/Puppeteer to TypeScript.

* fix api js
This commit is contained in:
Jack Franklin
2020-05-05 09:36:44 +01:00
committed by GitHub
parent 209e25c0e1
commit 890c215142
12 changed files with 154 additions and 234 deletions

View File

@@ -496,8 +496,8 @@ describe('Launcher specs', function() {
});
it('should require top-level DeviceDescriptors', async() => {
const {puppeteer, puppeteerPath} = getTestState();
const Devices = require(path.join(puppeteerPath, '/DeviceDescriptors'));
expect(Devices['iPhone 6']).toBe(puppeteer.devices['iPhone 6']);
const {devicesMap} = require(path.join(puppeteerPath, '/DeviceDescriptors'));
expect(devicesMap['iPhone 6']).toBe(puppeteer.devices['iPhone 6']);
});
});