Skip to content

Commit

Permalink
fix js tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Sep 20, 2018
1 parent f6b5931 commit f658eae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ describe('DisplayQueryButton', () => {
});
it('renders a dropdown', () => {
const wrapper = mount(<DisplayQueryButton {...defaultProps} />);
expect(wrapper.find(ModalTrigger)).to.have.lengthOf(2);
expect(wrapper.find(ModalTrigger)).to.have.lengthOf(3);
});
});
2 changes: 1 addition & 1 deletion superset/assets/src/explore/components/RowCountLabel.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const defaultProps = {
suffix: t('rows'),
};

export default function RowCountLabel({ rowcount, limit }) {
export default function RowCountLabel({ rowcount, limit, suffix }) {
const limitReached = rowcount === limit;
const bsStyle = (limitReached || rowcount === 0) ? 'warning' : 'default';
const formattedRowCount = defaultNumberFormatter(rowcount);
Expand Down

0 comments on commit f658eae

Please sign in to comment.