Skip to content

Commit

Permalink
Add now-passing test for repo shorthands
Browse files Browse the repository at this point in the history
Closes npm#4635, by proving that the update to
normalize-package-data in read-package-json fixed
the problem.
  • Loading branch information
robertkowalski authored and domenic committed Feb 13, 2014
1 parent debcfa5 commit 706b51f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion test/tap/outdated-git.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ mkdirp.sync(pkg + "/cache")

test("dicovers new versions in outdated", function (t) {
process.chdir(pkg)
t.plan(4)
t.plan(5)
npm.load({cache: pkg + "/cache", registry: common.registry}, function () {
npm.outdated(function (er, d) {
t.equal('git', d[0][3])
t.equal('git', d[0][4])
t.equal('git://github.com/robertkowalski/foo-private.git', d[0][5])
t.equal('git://user:[email protected]/robertkowalski/foo-private.git', d[1][5])
t.equal('git://github.com/robertkowalski/foo', d[2][5])
})
})
})
Expand Down
3 changes: 2 additions & 1 deletion test/tap/outdated-git/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"main": "index.js",
"dependencies": {
"foo-private": "git://github.com/robertkowalski/foo-private.git",
"foo-private-credentials": "git://user:[email protected]/robertkowalski/foo-private.git"
"foo-private-credentials": "git://user:[email protected]/robertkowalski/foo-private.git",
"foo-github": "robertkowalski/foo"
}
}

0 comments on commit 706b51f

Please sign in to comment.