Skip to content

Commit

Permalink
prune redundant tests, refactor redundant code.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamestalmage committed Mar 7, 2015
1 parent 73c6e78 commit 5e7e685
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 68 deletions.
7 changes: 2 additions & 5 deletions src/ngProvide/buildProviderCode.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,11 @@ function buildNgProvide(types, ids, inits) {
provides.push(s.provide(types[i], b.literal(ids[i].name), ids[i]));
}

var func = b.functionExpression(
null,
var moduleStmt = s.moduleCb(
[b.identifier('$provide')],
b.blockStatement(assignments.concat(provides))
assignments.concat(provides)
);

var moduleStmt = s.moduleStmt(func);

return s.beforeEachStmt(
[b.functionExpression(null, [], b.blockStatement([moduleStmt]))]
);
Expand Down
28 changes: 0 additions & 28 deletions test/ngProvide/buildNgProvideHandler-test.js

This file was deleted.

35 changes: 0 additions & 35 deletions test/ngProvide/insertProviders-test.js

This file was deleted.

0 comments on commit 5e7e685

Please sign in to comment.