Skip to content

Commit

Permalink
Add 1 more test
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj committed Jul 19, 2022
1 parent a05a476 commit 8b4e471
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions packages/mui-material/src/Stack/Stack.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,25 @@ describe('<Stack />', () => {
});

describe('prop: direction', () => {
it('should generate correct direction given string values', () => {
expect(
style({
ownerState: {
direction: 'column-reverse',
spacing: 1,
},
theme,
}),
).to.deep.equal({
'& > :not(style) + :not(style)': {
margin: 0,
marginBottom: '8px',
},
display: 'flex',
flexDirection: 'column-reverse',
});
});

it('should generate correct responsive styles regardless of breakpoints order', () => {
expect(
style({
Expand Down

0 comments on commit 8b4e471

Please sign in to comment.