Skip to content

Commit f89c7ba

Browse files
committed
Fix linting
1 parent 6b67f6c commit f89c7ba

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/main.test.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,14 @@ const BothError = ModernError.subclass('BothError', {
5050
plugins: [modernErrorsCli, modernErrorsBeautiful],
5151
cli: { timeout: 0 },
5252
})
53-
const ExitCodeError = BaseError.subclass('ExitCodeError', {
53+
const WarningError = BaseError.subclass('WarningError', {
5454
cli: { icon: 'warning' },
5555
})
5656
const DatabaseError = BaseError.subclass('DatabaseError', {
5757
cli: { icon: 'info' },
5858
})
5959

6060
const error = new BaseError(message)
61-
const innerError = new DatabaseError('inner')
62-
const outerError = new ExitCodeError('test', { errors: [innerError] })
6361

6462
each(
6563
[
@@ -136,9 +134,9 @@ test.serial('Can use aggregate errors, instance options', (t) => {
136134

137135
test.serial('Can use aggregate errors, class options', (t) => {
138136
const { consoleArg } = errorExit(
139-
new ExitCodeError('test', { errors: [new DatabaseError('inner')] }),
137+
new WarningError('test', { errors: [new DatabaseError('inner')] }),
140138
)
141-
t.true(consoleArg.includes(`${figures.warning} ExitCodeError: test`))
139+
t.true(consoleArg.includes(`${figures.warning} WarningError: test`))
142140
t.true(consoleArg.includes(`${figures.info} DatabaseError: inner`))
143141
})
144142

0 commit comments

Comments
 (0)