lodash-contrib
Advanced tools
Comparing version 241.4.2 to 241.4.3
{ | ||
"name": "lodash-contrib", | ||
"description": "The brass buckles on lodash's utility belt", | ||
"version": "241.4.2", | ||
"version": "241.4.3", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "dependencies": { |
@@ -10,2 +10,7 @@ | ||
test('fromQuery', function() { | ||
var query = 'foo%26bar=baz&test=total+utter+success'; | ||
ok(_.isEqual(_.fromQuery(query), {'foo&bar': 'baz', 'test': 'total utter success'}), 'can convert a query string to a hash'); | ||
}); | ||
test('implode', function() { | ||
@@ -24,2 +29,7 @@ equal(_.implode(['H','o','m','e','r']), 'Homer', 'Should implode an array of characters into a single string.'); | ||
test('toQuery', function() { | ||
var obj = {'foo&bar': 'baz', 'test': 'total success'}; | ||
equal(_.toQuery(obj), 'foo%26bar=baz&test=total%20success', 'can convert a hash to a query string'); | ||
}); | ||
test('strContains', function() { | ||
@@ -26,0 +36,0 @@ equal(_.strContains('Metaphysics', 'physics'), true, 'Should return true if string contains search string.'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1504578
28802