Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalopitz committed Mar 27, 2024
1 parent 2b52d61 commit 5fc3aa5
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 53 deletions.
96 changes: 46 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"@babel/plugin-transform-react-jsx": "^7.22.15",
"@babel/plugin-transform-runtime": "^7.17.0",
"@babel/preset-env": "^7.16.11",
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.3",
"@cfaester/enzyme-adapter-react-18": "^0.7.1",
"babel-loader": "^8.2.3",
"babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-react-jsx": "^6.24.1",
Expand Down
8 changes: 7 additions & 1 deletion setupTests.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { configure } from 'enzyme';
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
import Adapter from '@cfaester/enzyme-adapter-react-18';
import util from 'util';

Object.defineProperty(global, 'TextEncoder', {
value: util.TextEncoder,
});

configure({ adapter: new Adapter() });

window.QueueActions = {};
Expand Down
2 changes: 1 addition & 1 deletion src/ui/components/AlbumArt.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ export const AlbumArt = (props) => {
data-loading={loading}
data-loaded={loaded}
data-failed={failed}
data-serviceId={serviceId}
data-serviceid={serviceId}
data-src-computed={src}
data-src-prop={propsSrc}
/>
Expand Down

0 comments on commit 5fc3aa5

Please sign in to comment.