Skip to content

Commit

Permalink
test: update for strict equality check
Browse files Browse the repository at this point in the history
  • Loading branch information
goosewobbler committed Nov 30, 2023
1 parent abe59cb commit c2808f1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions example/multiremote/api.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ const { name, version } = packageJson;
describe('Electron APIs using Multiremote', () => {
it('should retrieve app metadata through the electron API', async () => {
const appName = await browser.electron.execute((electron) => electron.app.getName());
expect(appName).toEqual([name, name]);
expect(appName).toStrictEqual([name, name]);
const appVersion = await browser.electron.execute((electron) => electron.app.getVersion());
expect(appVersion).toEqual([version, version]);
expect(appVersion).toStrictEqual([version, version]);
});

it('should allow to retrieve API values from single instance', async () => {
const browserA = multiremotebrowser.getInstance('browserA');
expect(await browserA.electron.execute((electron) => electron.app.getName())).toBe([name, name]);
expect(await browserA.electron.execute((electron) => electron.app.getVersion())).toBe([version, version]);
expect(await browserA.electron.execute((electron) => electron.app.getName())).toStrictEqual([name, name]);
expect(await browserA.electron.execute((electron) => electron.app.getVersion())).toStrictEqual([version, version]);
const browserB = multiremotebrowser.getInstance('browserB');
expect(await browserB.electron.execute((electron) => electron.app.getName())).toBe([name, name]);
expect(await browserB.electron.execute((electron) => electron.app.getVersion())).toBe([version, version]);
expect(await browserB.electron.execute((electron) => electron.app.getName())).toStrictEqual([name, name]);
expect(await browserB.electron.execute((electron) => electron.app.getVersion())).toStrictEqual([version, version]);
});
});

0 comments on commit c2808f1

Please sign in to comment.