From b6545a19c352afd6a91a616ff5dc86733f49344d Mon Sep 17 00:00:00 2001 From: Denis Denisov Date: Thu, 6 Oct 2016 16:08:26 +0300 Subject: [PATCH] #125: removed console, added settings mocks; --- tests/mods/landSpec.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/mods/landSpec.js b/tests/mods/landSpec.js index ef193dd..63d8a68 100644 --- a/tests/mods/landSpec.js +++ b/tests/mods/landSpec.js @@ -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 ]; @@ -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 (); } );