Skip to content

Commit

Permalink
Fix deprectaion warnings while running test
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Mar 12, 2019
1 parent c130928 commit 1a3a082
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/helpers/inline_style.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ describe('InlineStyle helper class', () => {
})

describe('constructor()', () => {
context('with decls argument in string', () =>
context('with decls argument in string', () => {
it('assigns parsed declarations', () =>
expect(new InlineStyle('font-size: 20px;').toString()).toBe(
'font-size:20px;'
))
)
})

context('with decls argument in object', () =>
context('with decls argument in object', () => {
it('assigns the pair of declaration and value', () =>
expect(new InlineStyle({ border: '1px solid #000' }).toString()).toBe(
'border:1px solid #000;'
))
)
})

context('with decls argument in InlineStyle', () => {
it('assigns sanitized declarations', () => {
Expand Down

0 comments on commit 1a3a082

Please sign in to comment.