Skip to content

Commit

Permalink
Update dependencies (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
bedrich-schindler authored Sep 14, 2019
1 parent ee633f5 commit 4cbe693
Show file tree
Hide file tree
Showing 4 changed files with 1,989 additions and 1,627 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- '8'
- '10'
- 'lts/*'
install:
- npm install
Expand Down
18 changes: 9 additions & 9 deletions __tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ describe('flags no warnings with valid CSS', () => {
});

it('did not error', () => (
result.then(data => (
result.then((data) => (
expect(data.errored).toBeFalsy()
))
));

it('flags no warnings', () => (
result.then(data => (
result.then((data) => (
expect(data.results[0].warnings.length).toBe(0)
))
));
Expand All @@ -39,43 +39,43 @@ describe('flags warnings with invalid CSS', () => {
});

it('did error', () => (
result.then(data => (
result.then((data) => (
expect(data.errored).toBeTruthy()
))
));

it('flags one warning', () => (
result.then(data => (
result.then((data) => (
expect(data.results[0].warnings.length).toBe(1)
))
));

it('correct warning text', () => (
result.then(data => (
result.then((data) => (
expect(data.results[0].warnings[0].text).toBe('Unexpected !important (declaration-no-important)')
))
));

it('correct rule flagged', () => (
result.then(data => (
result.then((data) => (
expect(data.results[0].warnings[0].rule).toBe('declaration-no-important')
))
));

it('correct severity flagged', () => (
result.then(data => (
result.then((data) => (
expect(data.results[0].warnings[0].severity).toBe('error')
))
));

it('correct line number', () => (
result.then(data => (
result.then((data) => (
expect(data.results[0].warnings[0].line).toBe(2)
))
));

it('correct column number', () => (
result.then(data => (
result.then((data) => (
expect(data.results[0].warnings[0].column).toBe(18)
))
));
Expand Down
Loading

0 comments on commit 4cbe693

Please sign in to comment.