fix: null 체크를 위한 단언 연산자 추가

This commit is contained in:
2026-01-05 15:55:55 +00:00
parent 5dff367c85
commit 637d029101
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -260,7 +260,7 @@ describe('trait modules', () => {
const rng = new RandUtil(new ConstantRNG(0));
const config = buildConfig();
const unitSet = buildUnitSet();
const crewType = new WarCrewType(unitSet.crewTypes![0]);
const crewType = new WarCrewType(unitSet.crewTypes![0]!);
const city = buildCity();
const nation = buildNation();
const general = buildGeneral({
@@ -294,7 +294,7 @@ describe('trait modules', () => {
config,
city,
nation,
new WarCrewType(unitSet.crewTypes![1]),
new WarCrewType(unitSet.crewTypes![1]!),
new ActionLogger({}),
200,
180
+2 -2
View File
@@ -161,7 +161,7 @@ describe('war triggers', () => {
it('activates and applies critical damage', async () => {
const rng = new RandUtil(new ConstantRNG(0));
const config = buildConfig();
const crewType = new WarCrewType(buildUnitSet().crewTypes![0]);
const crewType = new WarCrewType(buildUnitSet().crewTypes![0]!);
const nation = buildNation();
const city = buildCity();
@@ -181,7 +181,7 @@ describe('war triggers', () => {
config,
city,
nation,
new WarCrewType(buildUnitSet().crewTypes![1]),
new WarCrewType(buildUnitSet().crewTypes![1]!),
new ActionLogger({}),
200,
180