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

Commit

Permalink
#125: land test for default data;
Browse files Browse the repository at this point in the history
  • Loading branch information
w20k committed Oct 4, 2016
1 parent f541ea5 commit 8896b53
Showing 1 changed file with 48 additions and 5 deletions.
53 changes: 48 additions & 5 deletions tests/mods/landSpec.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,55 @@
describe ( 'Land.js tests', function () {

it('should have a idrinth variable in scope', function() {
expect(idrinth).toBeDefined();
});
it ( 'should have a idrinth variable in scope', function () {
expect ( idrinth ).toBeDefined ();
} );


it ( 'should check default data is valid', function () {
var defData = {
cornfield: {
perHour: 100,
base: 4000
},
stable: {
perHour: 300,
base: 15000
},
barn: {
perHour: 400,
base: 25000
},
store: {
perHour: 700,
base: 50000
},
pub: {
perHour: 900,
base: 75000
},
inn: {
perHour: 1200,
base: 110000
},
tower: {
perHour: 2700,
base: 300000
},
fort: {
perHour: 4500,
base: 600000
},
castle: {
perHour: 8000,
base: 1200000
}
};

expect ( idrinth.land.data ).toEqual ( defData );
} );

lt ( "", function () {

it ( 'should be true', function () {
expect ( 'foo' ).toBe ( 'foo' );
} );

} );

0 comments on commit 8896b53

Please sign in to comment.