Skip to content

Commit

Permalink
Updated console error during build (#152)
Browse files Browse the repository at this point in the history
* fix console error

* Update version

---------

Co-authored-by: Mikhail Volkov <mikhail@volkovlabs.io>
  • Loading branch information
vitPinchuk and mikhail-vl authored Dec 9, 2024
1 parent d994919 commit f17bcc0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 6.3.0 (IN PROGRESS)

### Features / Enhancements

- Updated console error during build (#152)

## 6.2.0 (2024-12-03)

### Features / Enhancements
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@
"test:e2e:docker": "docker compose --profile e2e up --exit-code-from test",
"upgrade": "npm upgrade --save"
},
"version": "6.2.0"
"version": "6.3.0"
}
5 changes: 4 additions & 1 deletion src/components/ImagePanel/ImagePanel.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ jest.useFakeTimers();
describe('Image Panel', () => {
window.URL.createObjectURL = jest.fn();

const defaultWidth = 300;
const defaultHeight = 300;

const getComponent = ({ options = { name: '' }, data = { series: [] }, ...restProps }: any) => {
return <ImagePanel data={data} {...restProps} options={options} />;
return <ImagePanel data={data} width={defaultWidth} height={defaultHeight} {...restProps} options={options} />;
};

const elementHeight = 40;
Expand Down

0 comments on commit f17bcc0

Please sign in to comment.