Skip to content

Commit aba97c4

Browse files
committed
style: format exception handler tests
1 parent 71a0a8e commit aba97c4

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎tests/exceptions/exception_handler.spec.ts‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -273,12 +273,7 @@ test.group('Exception handler | handle', () => {
273273
const ctx = new HttpContextFactory().create()
274274

275275
const reporter = new SimpleErrorReporter()
276-
reporter.report(
277-
'<img src=x>',
278-
'required',
279-
fieldContext.create('username<img src=x>', ''),
280-
{}
281-
)
276+
reporter.report('<img src=x>', 'required', fieldContext.create('username<img src=x>', ''), {})
282277

283278
await exceptionHandler.handle(reporter.createError(), ctx)
284279
assert.equal(ctx.response.getStatus(), 422)

0 commit comments

Comments
 (0)