fix linter warnings

This commit is contained in:
Ben Zörb 2020-05-20 00:32:21 +02:00
parent e1408b4070
commit 480549442f
No known key found for this signature in database
GPG Key ID: B5022087DA9E02FF
2 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,6 @@ function normalizePath(str) {
function inline(html, styles, options) { function inline(html, styles, options) {
const o = {...DEFAULT_OPTIONS, ...(options || {})}; const o = {...DEFAULT_OPTIONS, ...(options || {})};
// console.log(o);
if (!isString(html)) { if (!isString(html)) {
html = String(html); html = String(html);
} }

View File

@ -636,4 +636,6 @@ test('Remove stylesheets', async () => {
expect(out2.toString('utf8')).not.toMatch('css/cartoon.css'); expect(out2.toString('utf8')).not.toMatch('css/cartoon.css');
expect(out2.toString('utf8')).not.toMatch('css/bootstrap.css'); expect(out2.toString('utf8')).not.toMatch('css/bootstrap.css');
expect(out.toString('utf8')).not.toMatch('css/bootstrap.css');
expect(out.toString('utf8')).not.toMatch('css/bootstrap.css');
}); });