Skip to content
This repository was archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
#125: removed console, added settings mocks;
Browse files Browse the repository at this point in the history
  • Loading branch information
w20k committed Oct 6, 2016
1 parent cb8cf51 commit b6545a1
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/mods/landSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ describe ( 'Land.js tests', function () {
}
mock[ 'idrinth-land-gold' ] = { value: '' };

console.log ( mock );

spyOn ( document, "getElementById" ).and.callFake ( function ( id ) {
if ( mock.hasOwnProperty ( id ) ) {
return mock[ id ];
Expand All @@ -74,10 +72,14 @@ describe ( 'Land.js tests', function () {
} );

spyOn(idrinth.core, 'alert');
spyOn(idrinth.settings, 'save');
spyOn(idrinth.settings, 'change');
} );


it ( "Should properly calculate land values", function () {
it ( "Should properly calculate without errors", function () {
//Prepare values

idrinth.land.calculate ();
} );

Expand Down

0 comments on commit b6545a1

Please sign in to comment.