Skip to content

Commit

Permalink
Merge pull request #269 from aknuds1/dependabot/npm_and_yarn/multi-ca…
Browse files Browse the repository at this point in the history
…cb32177c

Bump react, react-dom and @types/react
  • Loading branch information
aknuds1 authored Jan 13, 2025
2 parents 4fcec3d + 7afa009 commit 45d4606
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 57 deletions.
68 changes: 18 additions & 50 deletions package-lock.json

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

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,15 @@
},
"devDependencies": {
"@types/mocha": "^10.0.1",
"@types/react": "^18.0.33",
"@types/react": "^19.0.6",
"@types/react-dom": "^18.0.11",
"coveralls": "^3.1.0",
"eslint": "^9.0",
"mocha": "^11.0",
"mocha-lcov-reporter": "^1.2.0",
"nyc": "^17.1",
"react": "^18.0",
"react-dom": "^18.0",
"react": "^19.0",
"react-dom": "^19.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.3"
},
Expand Down
8 changes: 4 additions & 4 deletions test/html-to-react-tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ describe('Html2React', () => {
});

it('should return a valid HTML string with a react camelCase attribute', () => {
const htmlInput = '<div contenteditable="true"></div>';
const htmlInput = '<div contentEditable="true"></div>';

const reactComponent = parser.parse(htmlInput);
const reactHtml = ReactDOMServer.renderToStaticMarkup(reactComponent);
Expand Down Expand Up @@ -167,7 +167,7 @@ describe('Html2React', () => {
const reactComponent = parser.parse(htmlInput);
const reactHtml = ReactDOMServer.renderToStaticMarkup(reactComponent);

equal(reactHtml, htmlInput);
equal(reactHtml, '<link rel="preload" as="image" href="www.google.ca/logo.png"/>' + htmlInput);
});

// Covers issue #9
Expand Down Expand Up @@ -210,7 +210,7 @@ describe('Html2React', () => {
const reactComponent = parser.parse(htmlInput);
const reactHtml = ReactDOMServer.renderToStaticMarkup(reactComponent);

equal(reactHtml, htmlInput);
equal(reactHtml, '<link rel="preload" as="image" href="www.google.ca/logo.png"/>' + htmlInput);
});

it('should decode character entities in text nodes', () => {
Expand Down Expand Up @@ -264,7 +264,7 @@ describe('Html2React', () => {
const reactComponent = parser.parse(htmlInput);
const reactHtml = ReactDOMServer.renderToStaticMarkup(reactComponent);

equal(reactHtml, '<html><body><div></div></body></html>');
equal(reactHtml, '<html><head></head><body><div></div></body></html>');
});

it('should handle free text nodes', () => {
Expand Down

0 comments on commit 45d4606

Please sign in to comment.