mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Switch over to using sinon.sandbox in karma specs
This commit is contained in:
@@ -1,5 +1,15 @@
|
||||
beforeEach(module('habitrpg'));
|
||||
|
||||
var sandbox;
|
||||
|
||||
beforeEach(function() {
|
||||
sandbox = sinon.sandbox.create();
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
sandbox.restore();
|
||||
});
|
||||
|
||||
specHelper = {
|
||||
newUser: function(){
|
||||
var buffs = {per:0, int:0, con:0, str:0, stealth: 0, streaks: false};
|
||||
|
||||
Reference in New Issue
Block a user