Skip to content

Commit

Permalink
fix failing test on windows using correct assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
bholloway committed Jun 9, 2021
1 parent d6a7d7d commit 921ddda
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/cases/absolute-asset.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const {
} = require('./common/exec');
const {assertCssContent} = require('../lib/assert');
const {
onlyMeta, assertWebpackOk, assertWebpackNotOk, assertNoErrors, assertNoMessages, assertStdout,
onlyOS, onlyMeta, assertWebpackOk, assertWebpackNotOk, assertNoErrors, assertNoMessages, assertStdout,
assertCssSourceMapComment, assertCssFile, assertSourceMapFile, assertAssetError
} = require('../lib/assert');

Expand Down Expand Up @@ -90,11 +90,14 @@ module.exports = test(
// if webpack passes it is incidental but lets check anyway
testDebug(
all(buildDevNormal, buildProdNormal)(
onlyMeta('meta.version.webpack == 4')(
compose(onlyOS('posix'), onlyMeta('meta.version.webpack == 4'))(
assertWebpackNotOk,
assertAssetError
),
onlyMeta('meta.version.webpack >= 5')(
all(
onlyOS('windows'),
compose(onlyOS('posix'), onlyMeta('meta.version.webpack >= 5'))
)(
assertWebpackOk,
assertNoErrors,
assertNoMessages
Expand Down

0 comments on commit 921ddda

Please sign in to comment.