Skip to content

Commit

Permalink
Faster test running by not requiring asana module for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
limulus committed Jan 13, 2015
1 parent bb62302 commit b06de95
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
"use strict"

module.exports = require("./lib/AsanaTaskReceiver.js")
var AsanaTaskReceiver = module.exports = require("./lib/AsanaTaskReceiver.js")

var asana = require("asana")
AsanaTaskReceiver._asanaAPI = asana
2 changes: 1 addition & 1 deletion lib/AsanaTaskReceiver.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"use strict"

var AsanaTaskReceiver = module.exports = function () {
this._asana = require("asana")
this._asana = AsanaTaskReceiver._asanaAPI
this._asanaClient = null
this._config = null
}
Expand Down

0 comments on commit b06de95

Please sign in to comment.