Comparing version 0.0.10 to 0.0.11
@@ -5,3 +5,3 @@ { | ||
"description": "Work with objects of different cased keys", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"keywords": [], | ||
@@ -8,0 +8,0 @@ "dependencies": { |
0.0.11 / 2014-08-30 | ||
=================== | ||
* Merge pull request #7 from segmentio/fix/bug | ||
* fix edge case for facade | ||
0.0.10 / 2014-08-30 | ||
@@ -3,0 +9,0 @@ =================== |
@@ -95,2 +95,3 @@ | ||
key = undefined; | ||
// if we found no matching properties | ||
@@ -97,0 +98,0 @@ // on the current object, there's no match. |
{ | ||
"name": "obj-case", | ||
"version": "0.0.10", | ||
"version": "0.0.11", | ||
"description": "Work with objects of different cased keys", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -68,2 +68,8 @@ | ||
expect(objCase(obj2, 'websites')).to.eql('bbbb'); | ||
var obj4 = { | ||
websites: 'bbbb' | ||
}; | ||
expect(objCase(obj4, 'website')).to.eql(undefined); | ||
expect(objCase(obj4, 'websites')).to.eql('bbbb'); | ||
}); | ||
@@ -87,5 +93,5 @@ | ||
it('should work without finding a match', function () { | ||
it('should return undefined if it doesnt find a match', function () { | ||
var obj = { 'some-crazy.PROBABLY_MISSPELLED.NestedProperty': 10 }; | ||
expect(objCase(obj, 'SOME_CRAZY.ProbablyMssplld.nested_property')).to.eql(10); | ||
expect(objCase(obj, 'SOME_CRAZY.ProbablyMssplld.nested_property')).to.eql(undefined); | ||
}); | ||
@@ -92,0 +98,0 @@ }); |
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
12243
265