Skip to content

Commit

Permalink
Merge pull request #35 from wei-lee/fix-mbaas-client
Browse files Browse the repository at this point in the history
 🐛 make sure mbaas client is created correctly
  • Loading branch information
Wei Li authored Aug 23, 2018
2 parents 06c1010 + e3ccf38 commit a728483
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/errorHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var util = require('util');
var url = require('url');
var messaging = require('./common/message.js')();
var request = require('request');
var MbaasClientModule = require('fh-mbaas-client');
var MbaasClientModule = require('fh-mbaas-client').MbaasClient;
var fhreports = require('./cloud/fh-reports.js');

process.on('uncaughtException', function(err) {
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fh-mbaas-express",
"version": "6.0.0",
"version": "6.0.1",
"description": "FeedHenry MBAAS Express",
"main": "lib/webapp.js",
"dependencies": {
Expand All @@ -10,7 +10,7 @@
"express": "4.16.0",
"fh-amqp-js": "0.7.1",
"fh-mbaas-client": "1.1.4",
"fh-reportingclient": "1.0.0",
"fh-reportingclient": "1.0.1",
"multer": "1.3.0",
"request": "2.81.0",
"type-is": "~1.2.1",
Expand Down
2 changes: 1 addition & 1 deletion test/unit/test_errorHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function MockMbaasClient(env, obj) {
}
}

var eh = proxyquire('errorHandler.js', { 'fh-mbaas-client': MockMbaasClient});
var eh = proxyquire('errorHandler.js', { 'fh-mbaas-client': {'MbaasClient': MockMbaasClient}});

exports.it_should_not_attempt_process_exit = function(finish) {
var originalExit = process.exit;
Expand Down

0 comments on commit a728483

Please sign in to comment.