Skip to content

Commit b79322e

Browse files
committed
fix formatting
1 parent 226d6a7 commit b79322e

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/ApiError.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,7 @@ export class ApiError extends Error {
1919

2020
override cause?: HTTPError | undefined
2121

22-
constructor(params: {
23-
cause?: HTTPError
24-
body: TransloaditErrorResponseBody | undefined
25-
}) {
22+
constructor(params: { cause?: HTTPError; body: TransloaditErrorResponseBody | undefined }) {
2623
const { cause, body = {} } = params
2724

2825
const parts = ['API error']

test/unit/mock-http.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ describe('Mocked API tests', () => {
125125
)
126126

127127
const errorString = await promise.catch(inspect)
128-
expect(typeof errorString === 'string').toBeTruthy();
128+
expect(typeof errorString === 'string').toBeTruthy()
129129
expect(inspect(errorString).split('\n')).toEqual([
130130
expect.stringMatching(
131131
`API error \\(HTTP 400\\) INVALID_FILE_META_DATA: Invalid file metadata https://api2-oltu.transloadit.com/assemblies/foo`

0 commit comments

Comments
 (0)