Skip to content

Commit

Permalink
Fix test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Feb 26, 2018
1 parent 1bea257 commit 28a4587
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/hacks/grid-end.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class GridEnd extends Declaration {
} else {
decl.warn(
result,
`Can\'t prefix ${decl.prop} (${startProp} is not found).`
`Can not prefix ${decl.prop} (${startProp} is not found)`
);
}
}
Expand Down
6 changes: 4 additions & 2 deletions test/autoprefixer.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,10 @@ describe('hacks', () => {

expect(result.css).toEqual(output);
expect(result.warnings().map(i => i.toString())).toEqual([
'autoprefixer: <css input>:37:5: Can not find grid areas: ' +
'head, nav, main, foot'
'autoprefixer: <css input>:36:5: Can not prefix grid-column-end ' +
'(grid-column-start is not found)',
'autoprefixer: <css input>:38:5: Can not find grid areas: ' +
'head, nav, main, foot'
]);
});

Expand Down
3 changes: 2 additions & 1 deletion test/cases/grid.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
grid-row-end: 4;
}

.webkit {
.warn {
grid-column-end: 3;
grid: subgrid;
grid-template-areas: "head head"
"nav main"
Expand Down
3 changes: 2 additions & 1 deletion test/cases/grid.disabled.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@
grid-row-end: 4;
}

.webkit {
.warn {
grid-column-end: 3;
grid: subgrid;
grid-template-areas: "head head"
"nav main"
Expand Down
4 changes: 3 additions & 1 deletion test/cases/grid.out.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@
grid-row-end: 4;
}

.webkit {
.warn {
-ms-grid-column-span: 3;
grid-column-end: 3;
grid: subgrid;
grid-template-areas: "head head"
"nav main"
Expand Down

0 comments on commit 28a4587

Please sign in to comment.