Skip to content

Commit

Permalink
fix: code scanning alerts (#504)
Browse files Browse the repository at this point in the history
* fix: code scanning alerts

* Update tests/setStyle.test.ts
  • Loading branch information
afc163 authored Feb 8, 2024
1 parent 1459445 commit 550721c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/hooks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ describe('hooks', () => {
const errorSpy = jest.spyOn(console, 'error');

const Demo = () => {
const [val, setValue] = useState(0);
const [_, setValue] = useState(0);

React.useEffect(
() => () => {
Expand Down
2 changes: 1 addition & 1 deletion tests/setStyle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('setStyle', () => {

expect(document.body.style.cssText.replace(/\s/g, '')).toBe(
`${JSON.stringify(style)
.replace(/[\\"|{|}|\s]/g, '')
.replace(/[\\"{|}\s]/g, '')
.replace(/,/g, ';')};`,
);
expect(cacheStyle).toEqual({
Expand Down

0 comments on commit 550721c

Please sign in to comment.