Update metadata

This commit is contained in:
Imran Ismail
2019-09-05 12:08:20 +08:00
parent 6e5c237523
commit 56c04146d7
1454 changed files with 204046 additions and 234789 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()
})
})