Skip to content

Commit

Permalink
fix tests, bump get-own-enumerable-property-symbols version (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuvikovd authored and SBoudrias committed Apr 20, 2018
1 parent 25404d2 commit 9127a0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"json"
],
"dependencies": {
"get-own-enumerable-property-symbols": "^2.0.1",
"get-own-enumerable-property-symbols": "^3.0.0",
"is-obj": "^1.0.1",
"is-regexp": "^1.0.0"
},
Expand Down
6 changes: 4 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,11 @@ test('allows an object to be transformed', t => {
transform: (obj, prop, result) => {
if (prop === 'val') {
return String(obj[prop] + 1);
} else if (prop === 'bar') {
}
if (prop === 'bar') {
return '\'' + result + 'L\'';
} else if (obj[prop] === 8) {
}
if (obj[prop] === 8) {
return 'LOL';
}
return result;
Expand Down

0 comments on commit 9127a0c

Please sign in to comment.