@@ -124,7 +124,13 @@ describe('combat', () => {
124
124
// --------------------------
125
125
126
126
it ( 'should calculate carrier to star combat - carriers vs. star garrison - defender wins' , async ( ) => {
127
- const game = { } ;
127
+ const game = {
128
+ settings : {
129
+ specialGalaxy : {
130
+ combatResolutionMalusStrategy : 'anyCarrier'
131
+ }
132
+ }
133
+ } ;
128
134
129
135
const star = {
130
136
shipsActual : 10
@@ -161,7 +167,13 @@ describe('combat', () => {
161
167
} ) ;
162
168
163
169
it ( 'should calculate carrier to star combat - carriers vs. star garrison - attacker wins' , async ( ) => {
164
- const game = { } ;
170
+ const game = {
171
+ settings : {
172
+ specialGalaxy : {
173
+ combatResolutionMalusStrategy : 'anyCarrier'
174
+ }
175
+ }
176
+ } ;
165
177
166
178
const star = {
167
179
shipsActual : 10
@@ -198,7 +210,13 @@ describe('combat', () => {
198
210
} ) ;
199
211
200
212
it ( 'should calculate carrier to star combat - carriers vs. carriers - defender wins' , async ( ) => {
201
- const game = { } ;
213
+ const game = {
214
+ settings : {
215
+ specialGalaxy : {
216
+ combatResolutionMalusStrategy : 'anyCarrier'
217
+ }
218
+ }
219
+ } ;
202
220
203
221
const star = {
204
222
shipsActual : 0
@@ -239,7 +257,13 @@ describe('combat', () => {
239
257
} ) ;
240
258
241
259
it ( 'should calculate carrier to star combat - carriers vs. carriers - attacker wins' , async ( ) => {
242
- const game = { } ;
260
+ const game = {
261
+ settings : {
262
+ specialGalaxy : {
263
+ combatResolutionMalusStrategy : 'anyCarrier'
264
+ }
265
+ }
266
+ } ;
243
267
244
268
const star = {
245
269
shipsActual : 0
@@ -282,7 +306,13 @@ describe('combat', () => {
282
306
// --------------------------
283
307
284
308
it ( 'should calculate carrier to carrier combat - mutual destruction' , async ( ) => {
285
- const game = { } ;
309
+ const game = {
310
+ settings : {
311
+ specialGalaxy : {
312
+ combatResolutionMalusStrategy : 'anyCarrier'
313
+ }
314
+ }
315
+ } ;
286
316
287
317
const defenders = [ ] ;
288
318
@@ -319,7 +349,13 @@ describe('combat', () => {
319
349
} ) ;
320
350
321
351
it ( 'should calculate carrier to carrier combat - defender wins' , async ( ) => {
322
- const game = { } ;
352
+ const game = {
353
+ settings : {
354
+ specialGalaxy : {
355
+ combatResolutionMalusStrategy : 'anyCarrier'
356
+ }
357
+ }
358
+ } ;
323
359
324
360
const defenders = [ ] ;
325
361
@@ -356,7 +392,13 @@ describe('combat', () => {
356
392
} ) ;
357
393
358
394
it ( 'should calculate carrier to carrier combat - attacker wins' , async ( ) => {
359
- const game = { } ;
395
+ const game = {
396
+ settings : {
397
+ specialGalaxy : {
398
+ combatResolutionMalusStrategy : 'anyCarrier'
399
+ }
400
+ }
401
+ } ;
360
402
361
403
const defenders = [ ] ;
362
404
@@ -393,7 +435,13 @@ describe('combat', () => {
393
435
} ) ;
394
436
395
437
it ( 'should destroy carriers in carrier to carrier combat if they cannot withstand a single blow - defender wins' , async ( ) => {
396
- const game = { } ;
438
+ const game = {
439
+ settings : {
440
+ specialGalaxy : {
441
+ combatResolutionMalusStrategy : 'anyCarrier'
442
+ }
443
+ }
444
+ } ;
397
445
398
446
const defenders = [ ] ;
399
447
@@ -427,7 +475,13 @@ describe('combat', () => {
427
475
} ) ;
428
476
429
477
it ( 'should destroy carriers in carrier to carrier combat if they cannot withstand a single blow - attacker wins' , async ( ) => {
430
- const game = { } ;
478
+ const game = {
479
+ settings : {
480
+ specialGalaxy : {
481
+ combatResolutionMalusStrategy : 'anyCarrier'
482
+ }
483
+ }
484
+ } ;
431
485
432
486
const defenders = [ ] ;
433
487
0 commit comments