summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/tar/test/pack.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/tar/test/pack.js')
-rw-r--r--deps/npm/node_modules/tar/test/pack.js47
1 files changed, 42 insertions, 5 deletions
diff --git a/deps/npm/node_modules/tar/test/pack.js b/deps/npm/node_modules/tar/test/pack.js
index 0f50994587..bf033c1298 100644
--- a/deps/npm/node_modules/tar/test/pack.js
+++ b/deps/npm/node_modules/tar/test/pack.js
@@ -178,6 +178,39 @@ var tap = require("tap")
fill: '' } ]
, [ 'entry',
+ { path: 'fixtures/dir/',
+ mode: 488,
+ uid: uid,
+ gid: gid,
+ size: 0,
+ type: '5',
+ linkpath: '',
+ ustar: 'ustar\u0000',
+ ustarver: '00',
+ uname: '',
+ gname: '',
+ devmaj: 0,
+ devmin: 0,
+ fill: '' } ]
+
+ , [ 'entry',
+ { path: 'fixtures/dir/sub/',
+ mode: 488,
+ uid: uid,
+ gid: gid,
+ size: 0,
+ type: '5',
+ linkpath: '',
+ ustar: 'ustar\u0000',
+ ustarver: '00',
+ uname: '',
+ gname: '',
+ devmaj: 0,
+ devmin: 0,
+ fill: '' } ]
+
+
+ , [ 'entry',
{ path: 'fixtures/foo.js',
mode: 420,
uid: uid,
@@ -868,11 +901,15 @@ function runTest (t, doGH) {
}
t.equal(ev, wanted[0], "event type should be "+wanted[0])
- // if (ev !== wanted[0] || e.path !== wanted[1].path) {
- // console.error(wanted)
- // console.error([ev, e.props])
- // throw "break"
- // }
+ if (ev !== wanted[0] || e.path !== wanted[1].path) {
+ console.error("wanted", wanted)
+ console.error([ev, e.props])
+ e.on("end", function () {
+ console.error(e.fields)
+ throw "break"
+ })
+ }
+
t.has(e.props, wanted[1], "properties "+wanted[1].path)
if (wanted[2]) {