Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
vankop committed Jan 2, 2020
1 parent f38d182 commit fbe29ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/__tests__/standalone-parseErrors.test.js
Expand Up @@ -3,6 +3,7 @@
const blockNoEmpty = require('../rules/block-no-empty');
const configBlockNoEmpty = require('./fixtures/config-block-no-empty');
const path = require('path');
const replaceBackslashes = require('./replaceBackslashes');
const standalone = require('../standalone');

jest.mock('../rules/block-no-empty');
Expand All @@ -29,7 +30,7 @@ test('standalone with deprecations', async () => {

test('file with correct syntax reported correctly', async () => {
const data = await standalone({
files: path.join(__dirname, 'fixtures/broken-syntax/correct-syntax.css'),
files: replaceBackslashes(path.join(__dirname, 'fixtures/broken-syntax/correct-syntax.css')),
});

expect(data.results[0]).toMatchObject({
Expand All @@ -41,7 +42,7 @@ test('file with correct syntax reported correctly', async () => {

test('file with invalid syntax reported correctly', async () => {
const data = await standalone({
files: [path.join(__dirname, 'fixtures/broken-syntax/broken-syntax.css')],
files: [replaceBackslashes(path.join(__dirname, 'fixtures/broken-syntax/broken-syntax.css'))],
});

expect(data.results[0]).toMatchObject({
Expand Down

0 comments on commit fbe29ce

Please sign in to comment.