summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbspates <bxs4361@g.rit.edu>2016-04-05 22:41:57 -0700
committerbspates <bxs4361@g.rit.edu>2016-04-05 22:41:57 -0700
commit27e0a8bf7934d5f1a9ab7ddf3afef9bec33c54ef (patch)
tree56a0f77bbb5dac9a9b562bf6b0fe4f1da014c6d1
parent26f5653882e714bb04935e6ad745cdfafb8e371d (diff)
downloadasync-27e0a8bf7934d5f1a9ab7ddf3afef9bec33c54ef.tar.gz
change tabs to 4 spaces per linter
-rw-r--r--mocha_test/ensureAsync.js42
1 files changed, 21 insertions, 21 deletions
diff --git a/mocha_test/ensureAsync.js b/mocha_test/ensureAsync.js
index 0aecee6..c33e344 100644
--- a/mocha_test/ensureAsync.js
+++ b/mocha_test/ensureAsync.js
@@ -2,31 +2,31 @@ var async = require('../lib');
var expect = require('chai').expect;
describe('ensureAsync', function() {
- var passContext = function(cb) {
- cb(this);
- };
+ var passContext = function(cb) {
+ cb(this);
+ };
- it('should propely bind context to the wrapped function', function(done) {
+ it('should propely bind context to the wrapped function', function(done) {
- // call bind after wrapping with ensureAsync
- var context = {context: "post"};
- var postBind = async.ensureAsync(passContext);
- postBind = postBind.bind(context);
- postBind(function(ref) {
- expect(ref).to.equal(context);
- done();
+ // call bind after wrapping with ensureAsync
+ var context = {context: "post"};
+ var postBind = async.ensureAsync(passContext);
+ postBind = postBind.bind(context);
+ postBind(function(ref) {
+ expect(ref).to.equal(context);
+ done();
+ });
});
- });
- it('should not override the bound context of a function when wrapping', function(done) {
+ it('should not override the bound context of a function when wrapping', function(done) {
- // call bind before wrapping with ensureAsync
- var context = {context: "pre"};
- var preBind = passContext.bind(context);
- preBind = async.ensureAsync(preBind);
- preBind(function(ref) {
- expect(ref).to.equal(context);
- done();
+ // call bind before wrapping with ensureAsync
+ var context = {context: "pre"};
+ var preBind = passContext.bind(context);
+ preBind = async.ensureAsync(preBind);
+ preBind(function(ref) {
+ expect(ref).to.equal(context);
+ done();
+ });
});
- });
});