mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Moved sandbox.js to mocks directory
This commit is contained in:
9
test/spec/mocks/sandbox.js
Normal file
9
test/spec/mocks/sandbox.js
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
var sandbox;
|
||||||
|
|
||||||
|
beforeEach(function() {
|
||||||
|
sandbox = sinon.sandbox.create();
|
||||||
|
});
|
||||||
|
|
||||||
|
afterEach(function() {
|
||||||
|
sandbox.restore();
|
||||||
|
});
|
||||||
@@ -1,15 +1,5 @@
|
|||||||
beforeEach(module('habitrpg'));
|
beforeEach(module('habitrpg'));
|
||||||
|
|
||||||
var sandbox;
|
|
||||||
|
|
||||||
beforeEach(function() {
|
|
||||||
sandbox = sinon.sandbox.create();
|
|
||||||
});
|
|
||||||
|
|
||||||
afterEach(function() {
|
|
||||||
sandbox.restore();
|
|
||||||
});
|
|
||||||
|
|
||||||
specHelper = {
|
specHelper = {
|
||||||
newUser: function(){
|
newUser: function(){
|
||||||
var buffs = {per:0, int:0, con:0, str:0, stealth: 0, streaks: false};
|
var buffs = {per:0, int:0, con:0, str:0, stealth: 0, streaks: false};
|
||||||
|
|||||||
Reference in New Issue
Block a user