Skip to content

Commit

Permalink
test: fix coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
MunifTanjim committed Oct 31, 2023
1 parent b2586ea commit e5403c7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/error/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ for (const testCase of [
},
fromError(error: unknown) {
return this.cls.create(error, this.code, {
metadata: this.metadata,
errors: [this.error],
})
},
Expand Down Expand Up @@ -174,7 +173,7 @@ for (const testCase of [

expect(error.errors).toMatchObject([testCase.error])

expect(error.metadata).toMatchObject(testCase.metadata)
expect(error.metadata).toMatchObject({})
})

it('can be created from unknown', () => {
Expand All @@ -193,7 +192,7 @@ for (const testCase of [

expect(error.errors).toMatchObject([testCase.error])

expect(error.metadata).toMatchObject(testCase.metadata)
expect(error.metadata).toMatchObject({})
})
})
}
2 changes: 2 additions & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import '.'

describe('unoti', () => {
it('works', () => {
expect(42).toBe(42)
Expand Down

0 comments on commit e5403c7

Please sign in to comment.