fix: 국호와 예약 인자의 불필요한 앰퍼샌드 escape를 제거한다
This commit is contained in:
1 parent
6a23e4ca08
commit
da79013226
5 files changed
+50
-13
No files matched your search
@@ -396,7 +396,7 @@ describe('Nation Actions', () => {
|
||||
expect(changeNationNameArgsSchema.safeParse({ nationName: '가나다라마바사아자차' }).success).toBe(false);
|
||||
});
|
||||
|
||||
it('changes nation name', () => {
|
||||
it.each(['NewName', '풍년F&B'])('changes nation name to %s without HTML encoding', (name) => {
|
||||
const nation = buildNation(1, 'OldName');
|
||||
const general = buildGeneral(1, 1, 1);
|
||||
const definition = new ChangeNationNameAction();
|
||||
@@ -408,12 +408,12 @@ describe('Nation Actions', () => {
|
||||
addLog: () => {},
|
||||
};
|
||||
|
||||
const resolution = definition.resolve(context as any, { nationName: 'NewName' });
|
||||
const resolution = definition.resolve(context as any, { nationName: name });
|
||||
|
||||
expect(resolution.effects).toContainEqual(
|
||||
expect.objectContaining({
|
||||
type: 'nation:patch',
|
||||
patch: expect.objectContaining({ name: 'NewName' }),
|
||||
patch: expect.objectContaining({ name }),
|
||||
})
|
||||
);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user