Skip to content

Commit

Permalink
bugfix for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
spencermountain committed Sep 10, 2020
1 parent bddd1a4 commit 8405a95
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
3 changes: 2 additions & 1 deletion builds/wtf_wikipedia-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -3660,7 +3660,8 @@
text: function text() {
return ''; //nah, skip these.
},
json: function json(options) {
json: function json() {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var json = this.data || {}; //encode them, for mongodb

if (options.encode === true) {
Expand Down
2 changes: 1 addition & 1 deletion builds/wtf_wikipedia-client.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion builds/wtf_wikipedia-client.mjs

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion builds/wtf_wikipedia.js
Original file line number Diff line number Diff line change
Expand Up @@ -3664,7 +3664,8 @@
text: function text() {
return ''; //nah, skip these.
},
json: function json(options) {
json: function json() {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var json = this.data || {}; //encode them, for mongodb

if (options.encode === true) {
Expand Down
3 changes: 2 additions & 1 deletion builds/wtf_wikipedia.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3656,7 +3656,8 @@ var methods$5 = {
text: function text() {
return ''; //nah, skip these.
},
json: function json(options) {
json: function json() {
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
var json = this.data || {}; //encode them, for mongodb

if (options.encode === true) {
Expand Down
2 changes: 1 addition & 1 deletion src/reference/Reference.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const methods = {
return '' //nah, skip these.
},

json: function (options) {
json: function (options = {}) {
let json = this.data || {}
//encode them, for mongodb
if (options.encode === true) {
Expand Down

0 comments on commit 8405a95

Please sign in to comment.