Skip to content

Commit

Permalink
feat: add minH and maxH atoms
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Apr 18, 2018
1 parent 4ce3eac commit 5772142
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion addon/__tests__/atoms.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,14 @@ describe('atoms', function () {

nano.put('.bar', {
col: 'blue',
ta: 'center'
ta: 'center',
minH: '100px',
maxH: '200px'
});

expect(nano.putRaw.mock.calls[0][0].includes('color:blue')).toBe(true);
expect(nano.putRaw.mock.calls[0][0].includes('text-align:center')).toBe(true);
expect(nano.putRaw.mock.calls[0][0].includes('min-height:100px')).toBe(true);
expect(nano.putRaw.mock.calls[0][0].includes('max-height:200px')).toBe(true);
});
});
2 changes: 2 additions & 0 deletions addon/atoms.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ var atoms = exports.atoms = {
w: 'width',
minW: 'min-width',
maxW: 'max-width',
minH: 'min-height',
maxH: 'max-height',
h: 'height',
trs: 'transition',
out: 'outline',
Expand Down

0 comments on commit 5772142

Please sign in to comment.