1
0
mirror of https://github.com/actions/labeler synced 2026-05-07 05:01:02 +02:00
This commit is contained in:
David Kale
2020-09-08 13:25:36 -04:00
parent e4246d2b5b
commit 91fcbb0108
4227 changed files with 416837 additions and 457884 deletions

12
node_modules/exec-sh/test/exec-sh.js generated vendored
View File

@@ -73,7 +73,7 @@ describe('exec-sh', function () {
stdio: 'inherit'
}
execSh('command', options)
assert.deepEqual(spawn.getCall(0).args[2], expectedOptions)
assert.deepStrictEqual(spawn.getCall(0).args[2], expectedOptions)
})
it('should allow overriding default options', function () {
@@ -83,7 +83,7 @@ describe('exec-sh', function () {
stdio: null
}
execSh('command', options)
assert.deepEqual(spawn.getCall(0).args[2], expectedOptions)
assert.deepStrictEqual(spawn.getCall(0).args[2], expectedOptions)
})
it('should allow passing nested environment options', function () {
@@ -101,7 +101,7 @@ describe('exec-sh', function () {
stdio: 'inherit'
}
execSh('command', options)
assert.deepEqual(spawn.getCall(0).args[2], expectedOptions)
assert.deepStrictEqual(spawn.getCall(0).args[2], expectedOptions)
})
it("should accept optional 'callback' parameter", function () {
@@ -166,7 +166,7 @@ describe('exec-sh', function () {
exitCode = 1
execSh('command', function (err) {
assert(err instanceof Error)
assert.equal(exitCode, err.code)
assert.strictEqual(exitCode, err.code)
done()
})
})
@@ -177,8 +177,8 @@ describe('exec-sh', function () {
it('promise interface: should resolve with stderr and stdout', function (done) {
execSh.promise('command').then(function (data) {
assert(data.hasOwnProperty('stdout'))
assert(data.hasOwnProperty('stderr'))
assert.ok('stdout' in data)
assert.ok('stderr' in data)
done()
})
})