Skip to content

Commit add3b9a

Browse files
committed
Improve consistency in terms of where in the test the asset appears
1 parent 9695651 commit add3b9a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: packages/rrweb/test/integration.test.ts

+6
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ describe('record integration tests', function (this: ISuite) {
2424
fileName: string,
2525
options: recordOptions<eventWithTime> = {},
2626
): string => {
27+
if (!options.captureAssets) {
28+
// for consistency in the tests
29+
options.captureAssets = {
30+
processStylesheetsWithin: 200,
31+
};
32+
}
2733
const filePath = path.resolve(__dirname, `./html/${fileName}`);
2834
const html = fs.readFileSync(filePath, 'utf8');
2935
return replaceLast(

0 commit comments

Comments
 (0)