Skip to content

Commit

Permalink
test(styles): Add test for theme.space
Browse files Browse the repository at this point in the history
  • Loading branch information
ruedap committed Jul 24, 2020
1 parent a0bf923 commit 91372ca
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions styles/abstracts/_space.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { space } from './_space'

describe('space', () => {
describe('lg', () => {
it('should returns converted each value', () => {
const actual = space.lg
expect(actual()).toEqual(89)
expect(actual.px()).toEqual('89px')
expect(actual.rem()).toEqual('5.5625rem')
})
})
})

0 comments on commit 91372ca

Please sign in to comment.