Skip to content

Commit

Permalink
Avoid using afterEach
Browse files Browse the repository at this point in the history
We have a very old version of mocha, so we can't use this. Need to
upgrade.
  • Loading branch information
matthewp committed Jan 18, 2018
1 parent 279080d commit feb4278
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions test/tests.js
Expand Up @@ -256,10 +256,6 @@
page('/second');
});

afterEach(function(){
baseRoute = Function.prototype; // noop
});

it('should move back to history', function(done) {
first.once(function(){
var path = hashbang
Expand Down Expand Up @@ -293,6 +289,7 @@
it('calling back with nothing in the history and no path should go to the base', function(done){
baseRoute = function(){
expect(page.len).to.be.equal(0);
baseRoute = Function.prototype;
done();
};
page.len = 0;
Expand Down

0 comments on commit feb4278

Please sign in to comment.