add additional test cases for pypi license helper (#2043)

This commit is contained in:
chris48s
2018-09-02 21:11:28 +01:00
committed by GitHub
parent bca4c05625
commit 4830867a5c

View File

@@ -122,6 +122,18 @@ describe('PyPI helpers', function() {
},
}),
]).expect(['mit license'])
given({
info: {
license: '',
classifiers: ['License :: Public Domain'],
},
}).expect(['public domain'])
given({
info: {
license: '',
classifiers: ['License :: Netscape Public License (NPL)'],
},
}).expect(['NPL'])
})
test(getPackageFormats, () => {