Skip to content

Commit 885971d

Browse files
authored
Update custom-transform.spec.ts
1 parent 7b2893a commit 885971d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/functional/custom-transform.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,15 @@ describe("custom transformation decorator", () => {
199199
public address: Address;
200200

201201
@Type(() => Hobby)
202-
@Transform(value => value.filter(hobby: any => hobby.type === 'sport'), { toClassOnly: true })
202+
@Transform(value => value.filter((hobby) => hobby.type === 'sport'), { toClassOnly: true })
203203
public hobbies: Hobby[];
204204

205205
public age: number;
206206
}
207207
model = plainToClass(Person, json);
208208
expect(model instanceof Person);
209209
expect(model.address instanceof Address);
210-
model.hobbies.forEach(hobby: any => expect(hobby instanceof Hobby && hobby.type === 'sport'));
210+
model.hobbies.forEach((hobby) => expect(hobby instanceof Hobby && hobby.type === 'sport'));
211211
}).not.toThrowError();
212212
});
213213

0 commit comments

Comments
 (0)