Skip to content

Commit

Permalink
Merge pull request #59 from senecajs/add-upsert-tests
Browse files Browse the repository at this point in the history
Add upsert tests
  • Loading branch information
rjrodger committed May 11, 2021
2 parents 0dc432d + a8058de commit e8fc83a
Show file tree
Hide file tree
Showing 5 changed files with 1,143 additions and 2,322 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ node_modules

docs/annotated
docs/coverage.html
package-lock.json
7 changes: 7 additions & 0 deletions lib/common.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
exports.fetchProp = function (o, prop) {
if (!(prop in o)) {
throw new Error(`Missing property: ${prop}`)
}

return o[prop]
}
Loading

0 comments on commit e8fc83a

Please sign in to comment.