Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bezoerb committed Sep 15, 2023
1 parent 1a06253 commit ce78cd4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/blackbox.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ describe('generate (local)', () => {

test('should rewrite relative images for html outside root', (done) => {
const expected = read('expected/generate-image-relative.css');
const target = path.resolve('fixtures/folder/.mage-relative.css');
const target = path.resolve('fixtures/folder/.image-relative.css');

generate(
{
Expand Down
3 changes: 2 additions & 1 deletion test/core.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import {jest} from '@jest/globals';
import finalhandler from 'finalhandler';
import getPort from 'get-port';
import serveStatic from 'serve-static';
import CleanCSS from 'clean-css';
import {create} from '../src/core.js';
import {read} from './helper/index.js';
import CleanCSS from 'clean-css';

const __dirname = fileURLToPath(new URL('.', import.meta.url));
jest.setTimeout(100_000);
Expand Down Expand Up @@ -72,6 +72,7 @@ test('Generate critical-path CSS with custom cleancss config', async () => {
const expected = new CleanCSS(options).minify(css).styles;

try {
// eslint-disable-next-line no-await-in-loop
const result = await create({
src: `http://localhost:${port}/issue-562.html`,
cleanCSS: options,
Expand Down

0 comments on commit ce78cd4

Please sign in to comment.