fix: null 체크를 위한 단언 연산자 추가
This commit is contained in:
@@ -260,7 +260,7 @@ describe('trait modules', () => {
|
|||||||
const rng = new RandUtil(new ConstantRNG(0));
|
const rng = new RandUtil(new ConstantRNG(0));
|
||||||
const config = buildConfig();
|
const config = buildConfig();
|
||||||
const unitSet = buildUnitSet();
|
const unitSet = buildUnitSet();
|
||||||
const crewType = new WarCrewType(unitSet.crewTypes![0]);
|
const crewType = new WarCrewType(unitSet.crewTypes![0]!);
|
||||||
const city = buildCity();
|
const city = buildCity();
|
||||||
const nation = buildNation();
|
const nation = buildNation();
|
||||||
const general = buildGeneral({
|
const general = buildGeneral({
|
||||||
@@ -294,7 +294,7 @@ describe('trait modules', () => {
|
|||||||
config,
|
config,
|
||||||
city,
|
city,
|
||||||
nation,
|
nation,
|
||||||
new WarCrewType(unitSet.crewTypes![1]),
|
new WarCrewType(unitSet.crewTypes![1]!),
|
||||||
new ActionLogger({}),
|
new ActionLogger({}),
|
||||||
200,
|
200,
|
||||||
180
|
180
|
||||||
|
|||||||
@@ -161,7 +161,7 @@ describe('war triggers', () => {
|
|||||||
it('activates and applies critical damage', async () => {
|
it('activates and applies critical damage', async () => {
|
||||||
const rng = new RandUtil(new ConstantRNG(0));
|
const rng = new RandUtil(new ConstantRNG(0));
|
||||||
const config = buildConfig();
|
const config = buildConfig();
|
||||||
const crewType = new WarCrewType(buildUnitSet().crewTypes![0]);
|
const crewType = new WarCrewType(buildUnitSet().crewTypes![0]!);
|
||||||
const nation = buildNation();
|
const nation = buildNation();
|
||||||
const city = buildCity();
|
const city = buildCity();
|
||||||
|
|
||||||
@@ -181,7 +181,7 @@ describe('war triggers', () => {
|
|||||||
config,
|
config,
|
||||||
city,
|
city,
|
||||||
nation,
|
nation,
|
||||||
new WarCrewType(buildUnitSet().crewTypes![1]),
|
new WarCrewType(buildUnitSet().crewTypes![1]!),
|
||||||
new ActionLogger({}),
|
new ActionLogger({}),
|
||||||
200,
|
200,
|
||||||
180
|
180
|
||||||
|
|||||||
Reference in New Issue
Block a user