Skip to content

Commit

Permalink
feat(ngMock): add support of mocha tdd interface
Browse files Browse the repository at this point in the history
  • Loading branch information
sagens42 authored and RichardLitt committed May 24, 2014
1 parent 817625e commit e544d5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/ngMock/.jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
"browser": true,
"globals": {
"angular": false,
"expect": false,
"beforeEach": false,
"afterEach": false
"expect": false
}
}
4 changes: 2 additions & 2 deletions src/ngMock/angular-mocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -1976,11 +1976,11 @@ if(window.jasmine || window.mocha) {
};


beforeEach(function() {
(window.beforeEach || window.setup)(function() {
currentSpec = this;
});

afterEach(function() {
(window.afterEach || window.teardown)(function() {
var injector = currentSpec.$injector;

currentSpec.$injector = null;
Expand Down

0 comments on commit e544d5f

Please sign in to comment.