Skip to content

Commit

Permalink
Update integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-eb committed May 17, 2016
1 parent b3c09bf commit 21151f2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/__tests__/modules/cssnano-reduce-timing-functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ const mappings = {
};

Object.keys(mappings).forEach(mapping => {
if (!~mapping.indexOf('var')) {
tests.push({
message: `should handle ${mapping} (transition)`,
fixture: `transition:color 3s ${mappings[mapping]}`,
expected: `transition:color 3s ${mapping}`
});
}
tests.push({
message: `should handle ${mapping} (animation)`,
fixture: `animation:fade 3s ${mappings[mapping]}`,
Expand All @@ -21,10 +28,6 @@ Object.keys(mappings).forEach(mapping => {
message: `should handle ${mapping} (animation-timing-function)`,
fixture: `animation-timing-function:${mappings[mapping]}`,
expected: `animation-timing-function:${mapping}`
}, {
message: `should handle ${mapping} (transition)`,
fixture: `transition:color 3s ${mappings[mapping]}`,
expected: `transition:color 3s ${mapping}`
}, {
message: `should handle ${mapping} (transition-timing-function)`,
fixture: `transition-timing-function:${mappings[mapping]}`,
Expand Down

0 comments on commit 21151f2

Please sign in to comment.