Skip to content

Commit

Permalink
Coverage resolved
Browse files Browse the repository at this point in the history
  • Loading branch information
chinmay-browserstack committed Sep 19, 2024
1 parent 70f370f commit d7de0d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/core/test/discovery.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2890,6 +2890,11 @@ describe('Discovery', () => {
it('gathers resources for a snapshot', async () => {
let DOM1 = testDOM.replace('Percy!', 'Percy! at 370');
let DOM2 = testDOM.replace('Percy!', 'Percy! at 765');
const capturedResource = {
url: 'http://localhost:8000/img-already-captured.png',
content: 'R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==',
mimetype: 'image/png'
};

await percy.snapshot({
name: 'test snapshot',
Expand All @@ -2900,7 +2905,7 @@ describe('Discovery', () => {
domSnapshot: testDOM,
width: 1280
}, {
domSnapshot: { html: DOM1 },
domSnapshot: { html: DOM1, resources: [capturedResource] },
width: 370
}, {
domSnapshot: DOM2,
Expand Down

0 comments on commit d7de0d9

Please sign in to comment.