Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
feat(ngMock): add support of mocha tdd interface
Browse files Browse the repository at this point in the history
Closes #7489
  • Loading branch information
sagens42 authored and tbosch committed May 21, 2014
1 parent 9fb0e16 commit 854bf5b
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 854bf5b

Please sign in to comment.