Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/jju/test/update/pkg-json5.yaml')
-rw-r--r--node_modules/jju/test/update/pkg-json5.yaml36
1 files changed, 36 insertions, 0 deletions
diff --git a/node_modules/jju/test/update/pkg-json5.yaml b/node_modules/jju/test/update/pkg-json5.yaml
new file mode 100644
index 000000000..21a5c6eb1
--- /dev/null
+++ b/node_modules/jju/test/update/pkg-json5.yaml
@@ -0,0 +1,36 @@
+input: |
+ // vim:syntax=javascript
+ {
+ name: 'yapm',
+ version: '1.1.0-1325', // upstream npm@1.3.25
+ description: 'A package manager for node (npm fork)',
+ }
+
+output: |
+ // vim:syntax=javascript
+ {
+ name: 'yapm',
+ version: '1.1.0-1325', // upstream npm@1.3.25
+ description: 'A package manager for node (npm fork)',
+ _id: 'yapm@1.1.0-1325',
+ dist: {
+ shasum: 'd5aa31c1ad00c1e7e57e07cea1b22c1806a47111',
+ },
+ _from: './zzz',
+ }
+
+test: !!js/function |
+ function(jju, input) {
+ var upd = {
+ "name": "yapm",
+ "version": "1.1.0-1325",
+ "description": "A package manager for node (npm fork)",
+ "_id": "yapm@1.1.0-1325",
+ "dist": {
+ "shasum": "d5aa31c1ad00c1e7e57e07cea1b22c1806a47111"
+ },
+ "_from": "./zzz"
+ }
+ return jju.update(input, upd)
+ }
+