Skip to content

Commit e6c687f

Browse files
committed
fix sq warnings
1 parent 62ca353 commit e6c687f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/unit/services/BotGarden.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ describe('services/BotGarden', () => {
119119
it('adds big extension to next eligible season when first already has one', () => {
120120
const garden = BotGarden.fromPersistence(makeGarden({
121121
[Season.SPRING]: { flowers: [Flower.RED, Flower.BLUE] },
122-
[Season.SUMMER]: { flowers: Array(9).fill(Flower.RED), bigExtension: 1, smallExtensions: 2 },
122+
[Season.SUMMER]: { flowers: new Array(9).fill(Flower.RED), bigExtension: 1, smallExtensions: 2 },
123123
[Season.AUTUMN]: { flowers: [Flower.RED, Flower.BLUE] },
124124
[Season.WINTER]: { flowers: [Flower.RED, Flower.BLUE] },
125125
}), FLOWER_ORDER)
@@ -222,9 +222,9 @@ describe('services/BotGarden', () => {
222222
// But only 3 big ext and 3 small ext available
223223
// Max = 3 seasons * (2+3+4) + 1 season * 2 = 3*9 + 2 = 29
224224
const garden = BotGarden.fromPersistence(makeGarden({
225-
[Season.SPRING]: { flowers: Array(9).fill(Flower.RED), bigExtension: 1, smallExtensions: 2 },
226-
[Season.SUMMER]: { flowers: Array(7).fill(Flower.RED), bigExtension: 1, smallExtensions: 1 },
227-
[Season.AUTUMN]: { flowers: Array(5).fill(Flower.RED), bigExtension: 1 },
225+
[Season.SPRING]: { flowers: new Array(9).fill(Flower.RED), bigExtension: 1, smallExtensions: 2 },
226+
[Season.SUMMER]: { flowers: new Array(7).fill(Flower.RED), bigExtension: 1, smallExtensions: 1 },
227+
[Season.AUTUMN]: { flowers: new Array(5).fill(Flower.RED), bigExtension: 1 },
228228
[Season.WINTER]: { flowers: [Flower.RED, Flower.RED] },
229229
}), FLOWER_ORDER)
230230

0 commit comments

Comments
 (0)