Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
willfarrell committed May 8, 2024
1 parent 3067b88 commit 72f32d4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/util/__tests__/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,11 @@ const getInternalRequest = {
})
}
}
const promiseRejectError = new Error('promiseReject')
const promiseThrowError = new Error('promiseThrow')
const getInternalRejected = {
internal: {
promiseReject: Promise.reject('promiseReject'),
promiseReject: Promise.reject(promiseRejectError),
promiseThrow: new Promise(() => {
throw promiseThrowError
})
Expand All @@ -178,7 +179,7 @@ test('getInternal should throw errors', async (t) => {
t.is(e.message, 'Failed to resolve internal values')
t.deepEqual(e.cause, {
package: '@middy/util',
data: ['promiseReject', promiseThrowError]
data: [promiseRejectError, promiseThrowError]
})
}
})
Expand Down

0 comments on commit 72f32d4

Please sign in to comment.