From 9c81c0619b756f60b00e871df793ce16e83ae889 Mon Sep 17 00:00:00 2001 From: Paul Verest Date: Tue, 3 Aug 2021 17:14:10 +0800 Subject: [PATCH] browserslist updating warning: remove empty line (#612) * 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 --- node.js | 5 ++--- test/release.test.ts | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/node.js b/node.js index ffb55fda..38ed1cae 100644 --- a/node.js +++ b/node.js @@ -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' ) } diff --git a/test/release.test.ts b/test/release.test.ts index e7e9acd1..af0e806e 100644 --- a/test/release.test.ts +++ b/test/release.test.ts @@ -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' ) })