Skip to content

Commit

Permalink
restore a few relevante error message
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Apr 28, 2020
1 parent fcf97df commit e113a91
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion packages/material-ui-lab/src/SpeedDial/SpeedDial.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,10 @@ describe('<SpeedDial />', () => {
resetDialToOpen(dialDirection);

getDialButton().simulate('keydown', { key: firstKey });
expect(isActionFocused(firstFocusedAction)).to.equal(true);
expect(isActionFocused(firstFocusedAction)).to.equal(
true,
`focused action initial ${firstKey} should be ${firstFocusedAction}`,
);

combination.forEach((arrowKey, i) => {
const previousFocusedAction = foci[i - 1] || firstFocusedAction;
Expand Down
5 changes: 4 additions & 1 deletion packages/material-ui-utils/src/elementAcceptingRef.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ describe('elementAcceptingRef', () => {
);
}

expect(consoleErrorMock.callCount()).to.equal(failsOnMount ? 1 : 0);
expect(consoleErrorMock.callCount()).to.equal(
failsOnMount ? 1 : 0,
`but got '${consoleErrorMock.messages()[0]}'`,
);
}

before(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ describe('elementTypeAcceptingRef', () => {
);
}

expect(consoleErrorMock.callCount()).to.equal(failsOnMount ? 1 : 0);
expect(consoleErrorMock.callCount()).to.equal(
failsOnMount ? 1 : 0,
`but got '${consoleErrorMock.messages()[0]}'`,
);
}

before(() => {
Expand Down
5 changes: 4 additions & 1 deletion packages/material-ui/src/Grow/Grow.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ describe('<Grow />', () => {

it('should set style properties', () => {
expect(handleExit.args[0][0].style.opacity).to.equal('0');
expect(handleExit.args[0][0].style.transform).to.equal('scale(0.75, 0.5625)');
expect(handleExit.args[0][0].style.transform).to.equal(
'scale(0.75, 0.5625)',
'should have the exit scale',
);
});
});

Expand Down

0 comments on commit e113a91

Please sign in to comment.