Skip to content

Commit 550721c

Browse files
authored
fix: code scanning alerts (#504)
* fix: code scanning alerts * Update tests/setStyle.test.ts
1 parent 1459445 commit 550721c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/hooks.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ describe('hooks', () => {
420420
const errorSpy = jest.spyOn(console, 'error');
421421

422422
const Demo = () => {
423-
const [val, setValue] = useState(0);
423+
const [_, setValue] = useState(0);
424424

425425
React.useEffect(
426426
() => () => {

tests/setStyle.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe('setStyle', () => {
2020

2121
expect(document.body.style.cssText.replace(/\s/g, '')).toBe(
2222
`${JSON.stringify(style)
23-
.replace(/[\\"|{|}|\s]/g, '')
23+
.replace(/[\\"{|}\s]/g, '')
2424
.replace(/,/g, ';')};`,
2525
);
2626
expect(cacheStyle).toEqual({

0 commit comments

Comments
 (0)