mirror of
https://github.com/motajs/template.git
synced 2026-09-24 01:30:18 +08:00
test(06): normalize CRLF line endings for enemy comparer/special tests
This commit is contained in:
parent
5f6c648d28
commit
25e8c0662a
@ -83,10 +83,7 @@ function createManager(): FakeEnemyManager {
|
||||
* @param manager 假怪物管理器
|
||||
* @param code 特殊属性代码
|
||||
*/
|
||||
function createSpecial(
|
||||
manager: FakeEnemyManager,
|
||||
code: number
|
||||
): ISpecial<any> {
|
||||
function createSpecial(manager: FakeEnemyManager, code: number): ISpecial<any> {
|
||||
const creation = manager.specials.get(code);
|
||||
if (!creation) throw new Error(`special ${code} was not registered`);
|
||||
return creation(undefined);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user