fix: null 체크를 위한 단언 연산자 추가
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user