Skip to content

Commit

Permalink
Stabilize tests
Browse files Browse the repository at this point in the history
  • Loading branch information
voxpelli committed May 14, 2024
1 parent f5b8e98 commit a3d6ccd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/argument-placeholders.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
// Requirements
// ------------------------------------------------------------------------------

const { strictEqual } = require('assert').strict
const assert = require('assert').strict
const { strictEqual } = assert

const nodeApi = require('../lib')
const util = require('./lib/util')
Expand Down Expand Up @@ -147,7 +148,10 @@ describe('[argument-placeholders]', () => {

it('run-p command', () =>
runPar(['test-task:dump {%}', '--', '1st', '2nd'])
.then(() => strictEqual(result(), '["1st"]["2nd"]')))
.then(() => {
const value = result()
assert(value === '["1st"]["2nd"]' || value === '["2nd"]["1st"]')
}))
})

describe("Every '{1}', '{2}', '{@}' and '{*}' should be replaced by the arguments preceded by '--':", () => {
Expand Down

0 comments on commit a3d6ccd

Please sign in to comment.