mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: migrate src/Puppeteer to TypeScript (#5789)
* chore: migrate src/Puppeteer to TypeScript. * fix api js
This commit is contained in:
@@ -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']);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user