mirror of
https://github.com/EDCD/coriolis.git
synced 2025-12-09 22:55:35 +00:00
Top speed display and test tweaks
This commit is contained in:
@@ -87,10 +87,10 @@ angular.module('shipyard', ['ngLodash'])
|
|||||||
},
|
},
|
||||||
{ // 1
|
{ // 1
|
||||||
title: 'speed',
|
title: 'speed',
|
||||||
props: ['speed', 'boost'],
|
props: ['topSpeed', 'boost'],
|
||||||
lbls: ['thrusters', 'boost'],
|
lbls: ['thrusters', 'boost'],
|
||||||
unit: 'm/s',
|
unit: 'm/s',
|
||||||
fmt: 'fRound'
|
fmt: 'fCrd'
|
||||||
},
|
},
|
||||||
{ // 2
|
{ // 2
|
||||||
title: 'armour',
|
title: 'armour',
|
||||||
|
|||||||
@@ -21,7 +21,8 @@ describe("Ship Factory", function() {
|
|||||||
ship.buildWith(shipData.defaults);
|
ship.buildWith(shipData.defaults);
|
||||||
|
|
||||||
expect(ship.totalCost).toEqual(shipData.retailCost, s + ' retail cost does not match default build cost');
|
expect(ship.totalCost).toEqual(shipData.retailCost, s + ' retail cost does not match default build cost');
|
||||||
expect(ship.priorityBands[0].retracted).toBeGreaterThan(0, s + ' cargo');
|
expect(ship.cargoCapacity).toBeDefined(s + ' cargo');
|
||||||
|
expect(ship.priorityBands[0].retracted).toBeGreaterThan(0, s + ' priorityBands');
|
||||||
expect(ship.powerAvailable).toBeGreaterThan(0, s + ' powerAvailable');
|
expect(ship.powerAvailable).toBeGreaterThan(0, s + ' powerAvailable');
|
||||||
expect(ship.unladenRange).toBeGreaterThan(0, s + ' unladenRange');
|
expect(ship.unladenRange).toBeGreaterThan(0, s + ' unladenRange');
|
||||||
expect(ship.ladenRange).toBeGreaterThan(0, s + ' ladenRange');
|
expect(ship.ladenRange).toBeGreaterThan(0, s + ' ladenRange');
|
||||||
@@ -30,6 +31,7 @@ describe("Ship Factory", function() {
|
|||||||
expect(ship.ladenTotalRange).toBeGreaterThan(0, s + ' ladenTotalRange');
|
expect(ship.ladenTotalRange).toBeGreaterThan(0, s + ' ladenTotalRange');
|
||||||
expect(ship.shieldStrength).toBeGreaterThan(0, s + ' shieldStrength');
|
expect(ship.shieldStrength).toBeGreaterThan(0, s + ' shieldStrength');
|
||||||
expect(ship.armour).toBeGreaterThan(0, s + ' armour');
|
expect(ship.armour).toBeGreaterThan(0, s + ' armour');
|
||||||
|
expect(ship.topSpeed).toBeGreaterThan(0, s + ' topSpeed');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user