This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var sinon = require('sinon'); | |
var chai = require('chai'); | |
var expect = chai.expect; | |
var chaiAsPromised = require('chai-as-promised'); | |
var Promise = require('bluebird'); | |
var _ = require('lodash'); | |
var subscriptionService = require('../../lib/services/subscription-service'); | |
var addressService = require('../../lib/services/address-service'); | |
var subscriptionResource = require('../../lib/resources/subscriptions-resource'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Assume jQuery. | |
* | |
* Which approach is better? | |
*/ | |
this.someClass = 'some-class'; | |
// Save the scope for later use | |
var that = this; |