summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/read-package-json/node_modules/json-parse-helpfulerror/node_modules/jju/test/update/npm-array-bin.yaml
blob: 35e1639bfda28b090a9b51859e6120180c252e9f (plain)
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
input: |
  { "name":"npm-test-array-bin"
  , "version":"1.2.5"
  , "bin": [ "bin/array-bin" ]
  , "scripts": { "test": "node test.js" } }

# less than ideal, I know...
output: |
  { "name":"npm-test-array-bin"
  , "version":"1.2.5"
  , "bin": {"array-bin":"bin/array-bin"}
  , "scripts": { "test": "node test.js" }, "readme": "just an npm test\n", "readmeFilename": "README", "description": "just an npm test", "_id": "npm-test-array-bin@1.2.5", "dist": {"shasum":"9c426a1bd55e98718ab4ddcc01fa57ea83c649f1"}, "_from": "npm-test-array-bin/" }

test: !!js/function |
  function(jju, input) {
    obj =
    { name: 'npm-test-array-bin',
      version: '1.2.5',
      bin: { 'array-bin': 'bin/array-bin' },
      scripts: { test: 'node test.js' },
      readme: 'just an npm test\n',
      readmeFilename: 'README',
      description: 'just an npm test',
      _id: 'npm-test-array-bin@1.2.5',
      dist: { shasum: '9c426a1bd55e98718ab4ddcc01fa57ea83c649f1' },
      _from: 'npm-test-array-bin/' }
    return jju.update(input, obj)
  }