Skip to content

Commit

Permalink
resolve eslint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
cemms1 committed Feb 24, 2025
1 parent 6c152f6 commit c31ab5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions playwright/lib/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,9 @@ const logUnfilledSlots = (page: Page) => {
// Log commercial logs to playwight console
const logCommercial = (page: Page) => {
page.on('console', (msg) => {
const label = msg.args()[0]?.toString();
if (label?.includes('commercial')) {
console.dir({ msg }, { depth: null });
const label = JSON.stringify(msg.args()[0]);
if (label.includes('commercial')) {
console.log(msg.args().slice(4).map(String).join(' '));
}
});
Expand Down
4 changes: 2 additions & 2 deletions src/lib/messenger/background.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ describe('Cross-frame messenger: setupBackground', () => {
const parent = document.querySelector(
'.creative__background-parent',
);
expect(creative?.toString()).toEqual('[object HTMLDivElement]');
expect(parent?.toString()).toEqual('[object HTMLDivElement]');
expect(creative?.nodeName.toLowerCase()).toEqual('div');
expect(parent?.nodeName.toLowerCase()).toEqual('div');
expect(creative?.className).toMatch(/background--fixed/);
});
});
Expand Down

0 comments on commit c31ab5f

Please sign in to comment.