normalize-package-data
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -9,3 +9,3 @@ var semver = require("semver") | ||
fixRepositoryField: function(data) { | ||
if (data.repostories) { | ||
if (data.repositories) { | ||
this.warn("'repositories' (plural) Not supported.\n" + | ||
@@ -12,0 +12,0 @@ "Please pick one as the 'repository' field"); |
{ | ||
"name": "normalize-package-data", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"author": "Meryn Stol <merynstol@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "Normalizes data that can be found in package.json files.", |
@@ -101,1 +101,8 @@ var tap = require("tap") | ||
}) | ||
tap.test("singularize repositories", function(t) { | ||
d = {repositories:["git@gist.github.com:123456.git"]} | ||
normalize(d) | ||
t.same(d.repository, { type: 'git', url: 'git@gist.github.com:123456.git' }) | ||
t.end() | ||
}); |
36455
1039