Skip to content

Commit

Permalink
fix: update asyncapi react dependency (#497)
Browse files Browse the repository at this point in the history
Co-authored-by: Lukasz Gornicki <[email protected]>
  • Loading branch information
jonaslagoni and derberg authored Jan 24, 2024
1 parent 4571990 commit 572a5c5
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 15 deletions.
8 changes: 4 additions & 4 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 @@ -39,7 +39,7 @@
"dependencies": {
"@asyncapi/generator-react-sdk": "^1.0.0",
"@asyncapi/parser": "^3.0.2",
"@asyncapi/react-component": "^1.2.12",
"@asyncapi/react-component": "^1.2.13",
"highlight.js": "10.7.3",
"puppeteer": "^14.1.0",
"react-dom": "^17.0.2",
Expand Down
2 changes: 1 addition & 1 deletion template/css/asyncapi.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion template/js/asyncapi-ui.min.js

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions test/components/__snapshots__/index.test.js.snap

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions test/components/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ const parser = new Parser();

describe('Index component', () => {
it('should render AsyncAPI v3 document', async () => {
const { document, diagnostics } = await fromFile(parser, asyncapi_v3_path).parse();
console.log(diagnostics);
const { document } = await fromFile(parser, asyncapi_v3_path).parse();
expect(document).not.toBeUndefined();
const result = render(<Index asyncapi={document} params={{}}/>);
const actual = result.trim();
Expand Down

0 comments on commit 572a5c5

Please sign in to comment.