/
npm.js.test.cjs
35 lines (34 loc) · 1.04 KB
/
npm.js.test.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* IMPORTANT
* This snapshot file is auto-generated, but designed for humans.
* It should be checked into source control and tracked carefully.
* Re-generate by setting TAP_SNAPSHOT=1 and running tests.
* Make sure to inspect the output below. Do not ignore changes!
*/
'use strict'
exports[`test/util/npm.js TAP do the things > expect resolving Promise 1`] = `
Object {
"args": Array [
"/path/to/npm/bin/npm-cli.js",
"flerb",
],
"cmd": "{NODE}",
"code": undefined,
"message": "oopsie",
"signal": undefined,
"stderr": "",
"stdout": "[\\"{NODE}\\",[\\"/path/to/npm/bin/npm-cli.js\\",\\"flerb\\"],{\\"cwd\\":\\"/cwd\\",\\"env\\":{\\"environmental\\":\\"variables\\"}}]",
}
`
exports[`test/util/npm.js TAP do the things > expect resolving Promise 2`] = `
Object {
"args": Array [
"flerb",
],
"cmd": "/path/to/npm",
"code": undefined,
"message": "oopsie",
"signal": undefined,
"stderr": "",
"stdout": "[\\"/path/to/npm\\",[\\"flerb\\"],{\\"cwd\\":\\"/cwd\\",\\"env\\":{\\"environmental\\":\\"variables\\"}}]",
}
`