Skip to content

Commit

Permalink
browserslist updating warning: remove empty line (#612)
Browse files Browse the repository at this point in the history
* browserslist updating warning: remove empty line

and make 3 lines (every line clearly belonging to browserslist), 2nd, 3rd with "  " double spaceindent.

* browserslist updating warning: remove empty line (release.test.ts)

* comply with lint 80 max

* spacing

* comply with lint 80 max
  • Loading branch information
Paul Verest committed Aug 3, 2021
1 parent 4aefcaa commit 3c66f56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions node.js
Expand Up @@ -375,9 +375,8 @@ module.exports = {
if (latest !== 0 && latest < halfYearAgo) {
console.warn(
'Browserslist: caniuse-lite is outdated. Please run:\n' +
'npx browserslist@latest --update-db\n' +
'\n' +
'Why you should do it regularly:\n' +
' npx browserslist@latest --update-db\n' +
' Why you should do it regularly: ' +
'https://github.com/browserslist/browserslist#browsers-data-updating'
)
}
Expand Down
5 changes: 2 additions & 3 deletions test/release.test.ts
Expand Up @@ -111,9 +111,8 @@ it('shows warning', () => {
browserslist('last 2 versions')
expect(console.warn).toHaveBeenCalledWith(
'Browserslist: caniuse-lite is outdated. Please run:\n' +
'npx browserslist@latest --update-db\n' +
'\n' +
'Why you should do it regularly:\n' +
' npx browserslist@latest --update-db\n' +
' Why you should do it regularly: ' +
'https://github.com/browserslist/browserslist#browsers-data-updating'
)
})
Expand Down

0 comments on commit 3c66f56

Please sign in to comment.