• Home
  • Raw
  • Download

Lines Matching refs:selected

20   var selected = pickManifest('^1.0.0', 'latest', versions, metadata)
21 t.equal(selected.manifest.version, '1.1.0', 'picked the right manifest using ^')
22 t.equal(selected.resolvedTo, '1.1.0', 'resolved using version match')
23 selected = pickManifest('^1.0.0', 'example', versions, metadata)
24 t.equal(selected.manifest.version, '1.1.0', 'picked the right manifest using ^')
25 t.equal(selected.resolvedTo, 'example', 'resolved using tag')
43 var selected = pickManifest('~1.0.0', 'latest', versions, metadata)
44 t.equal(selected.manifest.version, '1.0.2', 'picked the right manifest using ~')
45 t.equal(selected.resolvedTo, '1.0.2', 'resolved using version match')
60 var selected = pickManifest('>=1.0.0 <2', 'example', versions, metadata)
61 t.equal(selected.manifest.version, '1.0.2', 'picked the right manifest using mathematical range')
62 t.equal(selected.resolvedTo, '1.0.2', 'resolved using version match')
77 var selected = pickManifest('1.0.0', 'latest', versions, metadata)
78 t.equal(selected.manifest.version, '1.0.0', 'picked the right manifest using specific version')
79 t.equal(selected.resolvedTo, '1.0.0', 'resolved using version match')
93 var selected = pickManifest('^2.1.0', 'latest', versions, metadata)
94 t.equal(selected, undefined, 'no manifest matched')
111 var selected = pickManifest('^1.0.0', 'foo', versions, metadata)
112 t.equal(selected.manifest.version, '1.0.1', 'picked the version for foo')
113 t.equal(selected.resolvedTo, 'foo', 'resolved using tag')
115 selected = pickManifest('^2.0.0', 'foo', versions, metadata)
116 t.equal(selected.manifest.version, '2.0.0', 'no match, no foo')
117 t.equal(selected.resolvedTo, '2.0.0', 'resolved using version match')
135 var selected = pickManifest('*', 'beta', versions, metadata)
136 t.equal(selected.manifest.version, '2.0.0-beta.0', 'used defaultTag for all-prerelease splat.')
137 t.equal(selected.resolvedTo, 'beta', 'resolved using tag')
142 var selected = pickManifest('^1.0.0', 'latest', [], {'dist-tags': {}, versions: {}})
143 t.equal(selected, undefined, 'no versions, no result')