test: check if the executable path is an exact match (#4117)

References #4102
This commit is contained in:
Joel Einbinder 2019-03-04 23:46:14 -08:00 committed by Andrey Lushnikov
parent 7462bdafa1
commit f32d77e074

View File

@ -321,6 +321,7 @@ module.exports.addTests = function({testRunner, expect, defaultBrowserOptions, p
it('should work', async({server}) => { it('should work', async({server}) => {
const executablePath = puppeteer.executablePath(); const executablePath = puppeteer.executablePath();
expect(fs.existsSync(executablePath)).toBe(true); expect(fs.existsSync(executablePath)).toBe(true);
expect(fs.realpathSync(executablePath)).toBe(executablePath);
}); });
}); });
}); });