Skip to content

Commit

Permalink
Use async-each-series instead of async
Browse files Browse the repository at this point in the history
  • Loading branch information
shinnn committed Jan 31, 2015
1 parent 87b846d commit 924bba5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion lib/UI.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var config = require("./config");
var Immutable = require("immutable");
var eachSeries = require("async-each-series");
var asyncTasks = require("./async-tasks");
var hooks = require("./hooks");
var merge = require("./opts").merge;
Expand Down Expand Up @@ -51,7 +52,7 @@ UI.prototype.init = function () {

var ui = this;

ui.bs.utils.async.eachSeries(
eachSeries(
asyncTasks,
taskRunner(ui),
tasksComplete(ui)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,14 @@
"angular-route": "^1.3.8",
"angular-sanitize": "^1.3.8",
"angular-touch": "^1.3.8",
"async-each-series": "^0.1.1",
"connect-history-api-fallback": "0.0.5",
"immutable": "^3.3.0",
"through2": "^0.6.3",
"weinre": "^2.0.0-pre-I0Z7U9OV"
},
"devDependencies": {
"angular-mocks": "^1.3.8",
"async": "^0.9.0",
"browser-sync": "git://github.com/shakyshane/browser-sync",
"bs-html-injector": "^1.2.1",
"chai": "^1.9.1",
Expand Down
8 changes: 4 additions & 4 deletions test/client/e2e/_setup.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"use strict";

var async = require("async");
var path = require("path");
var ptor = require("./runProtractor");
var path = require("path");
var eachSeries = require("async-each-series");
var ptor = require("./runProtractor");

var tests = [
"history.js",
Expand All @@ -12,7 +12,7 @@ var tests = [

var configFile = path.resolve(__dirname + "/config.js");

async.eachSeries(tests, function (testFile, asyncCallback) {
eachSeries(tests, function (testFile, asyncCallback) {
console.log("Running: %s", testFile);
process.env["BS_TEST_FILE"] = "tests/" + testFile;
ptor({}, configFile, function (err, out) {
Expand Down

0 comments on commit 924bba5

Please sign in to comment.