Skip to content

Commit

Permalink
Adds integration test scenario for "area" prop alias
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed Mar 16, 2019
1 parent 3033d44 commit 0ccca37
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cypress/integration/other/prop-aliases.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import propAliases from '../../../src/const/propAliases'

const defaultValue = 10
const assertValues = {
area: 'first',
// prettier-ignore
areas: 'first',
// prettier-ignore
Expand Down Expand Up @@ -37,6 +38,12 @@ const assertAreas = (cssValue, expectedValue) => {
}

const exactAssertion = {
area: (cssValue, expectedValue) => {
return (
cssValue ===
`${expectedValue} / ${expectedValue} / ${expectedValue} / ${expectedValue}`
)
},
areas: assertAreas,
template: assertAreas,
}
Expand Down

0 comments on commit 0ccca37

Please sign in to comment.