@@ -17,7 +17,7 @@ exports[`test/dir.js TAP basic > manifest 1`] = `
17
17
Object {
18
18
"_from": "file:test/fixtures/abbrev",
19
19
"_id": "abbrev@1.1.1",
20
- "_integrity": " null" ,
20
+ "_integrity": null,
21
21
"_resolved": "\${CWD}/test/fixtures/abbrev",
22
22
"author": "Isaac Z. Schlueter <i@izs.me>",
23
23
"description": "Like ruby's abbrev module, but in js",
@@ -75,15 +75,15 @@ Object {
75
75
"1.1.1": Object {
76
76
"_from": "file:test/fixtures/abbrev",
77
77
"_id": "abbrev@1.1.1",
78
- "_integrity": " null" ,
78
+ "_integrity": null,
79
79
"_resolved": "\${CWD}/test/fixtures/abbrev",
80
80
"author": "Isaac Z. Schlueter <i@izs.me>",
81
81
"description": "Like ruby's abbrev module, but in js",
82
82
"devDependencies": Object {
83
83
"tap": "^10.1",
84
84
},
85
85
"dist": Object {
86
- "integrity": " null" ,
86
+ "integrity": null,
87
87
"tarball": "file:\${CWD}/test/fixtures/abbrev",
88
88
},
89
89
"files": Array [
@@ -109,7 +109,7 @@ exports[`test/dir.js TAP basic > saved package.json 1`] = `
109
109
Object {
110
110
"_from": "file:test/fixtures/abbrev",
111
111
"_id": "abbrev@1.1.1",
112
- "_integrity": " null" ,
112
+ "_integrity": null,
113
113
"_resolved": "\${CWD}/test/fixtures/abbrev",
114
114
"author": "Isaac Z. Schlueter <i@izs.me>",
115
115
"description": "Like ruby's abbrev module, but in js",
@@ -133,6 +133,46 @@ Object {
133
133
}
134
134
`
135
135
136
+ exports [ `test/dir.js TAP dir with integrity > packument 1` ] = `
137
+ Object {
138
+ "dist-tags": Object {
139
+ "latest": "1.1.1",
140
+ },
141
+ "name": "abbrev",
142
+ "versions": Object {
143
+ "1.1.1": Object {
144
+ "_from": "file:test/fixtures/abbrev",
145
+ "_id": "abbrev@1.1.1",
146
+ "_integrity": "sha512-whatever-this-is-only-checked-if-we-extract-it",
147
+ "_resolved": "\${CWD}/test/fixtures/abbrev",
148
+ "author": "Isaac Z. Schlueter <i@izs.me>",
149
+ "description": "Like ruby's abbrev module, but in js",
150
+ "devDependencies": Object {
151
+ "tap": "^10.1",
152
+ },
153
+ "dist": Object {
154
+ "integrity": "sha512-whatever-this-is-only-checked-if-we-extract-it",
155
+ "tarball": "file:\${CWD}/test/fixtures/abbrev",
156
+ },
157
+ "files": Array [
158
+ "abbrev.js",
159
+ ],
160
+ "license": "ISC",
161
+ "main": "abbrev.js",
162
+ "name": "abbrev",
163
+ "repository": "http://github.com/isaacs/abbrev-js",
164
+ "scripts": Object {
165
+ "postpublish": "git push origin --all; git push origin --tags",
166
+ "postversion": "npm publish",
167
+ "preversion": "npm test",
168
+ "test": "tap test.js --100",
169
+ },
170
+ "version": "1.1.1",
171
+ },
172
+ },
173
+ }
174
+ `
175
+
136
176
exports [ `test/dir.js TAP make bins executable > results of unpack 1` ] = `
137
177
Object {
138
178
"from": "file:test/fixtures/bin-object",
@@ -161,7 +201,7 @@ exports[`test/dir.js TAP with prepare script > manifest 1`] = `
161
201
Object {
162
202
"_from": "file:test/fixtures/prepare-script",
163
203
"_id": "git-prepare-script@1.0.0",
164
- "_integrity": " null" ,
204
+ "_integrity": null,
165
205
"_resolved": "\${CWD}/test/fixtures/prepare-script",
166
206
"devDependencies": Object {
167
207
"abbrev": "^1.1.1",
@@ -186,13 +226,13 @@ Object {
186
226
"1.0.0": Object {
187
227
"_from": "file:test/fixtures/prepare-script",
188
228
"_id": "git-prepare-script@1.0.0",
189
- "_integrity": " null" ,
229
+ "_integrity": null,
190
230
"_resolved": "\${CWD}/test/fixtures/prepare-script",
191
231
"devDependencies": Object {
192
232
"abbrev": "^1.1.1",
193
233
},
194
234
"dist": Object {
195
- "integrity": " null" ,
235
+ "integrity": null,
196
236
"tarball": "file:\${CWD}/test/fixtures/prepare-script",
197
237
},
198
238
"license": "ISC",
0 commit comments