Skip to content

Commit

Permalink
skipping tests
Browse files Browse the repository at this point in the history
  • Loading branch information
billyvg committed Aug 28, 2024
1 parent 5b202fc commit cbc4e92
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions packages/rrweb-snapshot/test/rebuild.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,22 +183,24 @@ describe('rebuild', function () {
});
});

it('should not incorrectly interpret escaped quotes', () => {
// the ':hover' in the below is a decoy which is not part of the selector,
// previously that part was being incorrectly consumed by the selector regex
const should_not_modify =
".tailwind :is(.before\\:content-\\[\\'\\'\\])::before { --tw-content: \":hover\"; content: var(--tw-content); }.tailwind :is(.\\[\\&\\>li\\]\\:before\\:content-\\[\\'-\\'\\] > li)::before { color: pink; }";
expect(adaptCssForReplay(should_not_modify, cache)).toEqual(
should_not_modify,
);
});

it('should not incorrectly interpret at rules', () => {
// the ':hover' in the below is a decoy which is not part of the selector,
const should_not_modify =
'@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,400;0,500;0,700;1,400&display=:hover");';
expect(adaptCssForReplay(should_not_modify, cache)).toEqual(
should_not_modify,
);
});
// sentry: skipped because we've removed `adaptCssForReplay` for now
// it('should not incorrectly interpret escaped quotes', () => {
// // the ':hover' in the below is a decoy which is not part of the selector,
// // previously that part was being incorrectly consumed by the selector regex
// const should_not_modify =
// ".tailwind :is(.before\\:content-\\[\\'\\'\\])::before { --tw-content: \":hover\"; content: var(--tw-content); }.tailwind :is(.\\[\\&\\>li\\]\\:before\\:content-\\[\\'-\\'\\] > li)::before { color: pink; }";
// expect(adaptCssForReplay(should_not_modify, cache)).toEqual(
// should_not_modify,
// );
// });

// sentry: skipped because we've removed `adaptCssForReplay` for now
// it('should not incorrectly interpret at rules', () => {
// // the ':hover' in the below is a decoy which is not part of the selector,
// const should_not_modify =
// '@import url("https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,400;0,500;0,700;1,400&display=:hover");';
// expect(adaptCssForReplay(should_not_modify, cache)).toEqual(
// should_not_modify,
// );
// });
});

0 comments on commit cbc4e92

Please sign in to comment.