Skip to content

Commit

Permalink
make sure previous logic still work
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Nov 9, 2020
1 parent 7783cd2 commit 8e248f7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/material-ui-system/src/spacing.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,16 @@ describe('spacing', () => {
);
expect(output).to.deep.equal({ padding: undefined });
});

it('should accept non integer value', () => {
const output = spacing({
theme: {
spacing: 8,
},
p: 0.5,
});
expect(output).to.deep.equal({ padding: 4 });
});
});

it('should support negative values', () => {
Expand Down

0 comments on commit 8e248f7

Please sign in to comment.