Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hoshinotsuyoshi committed Jan 14, 2025
1 parent 66693fe commit 04ee3c8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,12 @@ describe(processor, () => {
),
]

expect(result).toEqual({ value, errors })
expect(result.value).toEqual(value)
expect(result.errors).toEqual(errors)
expect(result.errorObjects[0]?.name).toEqual('UnsupportedTokenError')
expect(result.errorObjects[0]?.message).toEqual(
'Expected a string for the table name, but received different data',
)
})
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,14 @@ describe(processor, () => {
const errors = [
new UnexpectedTokenWarningError('syntax error at or near "CREATEe"'),
]

expect(result).toEqual({ value, errors })
expect(result.value).toEqual(value)
expect(result.errors).toEqual(errors)
expect(result.errorObjects[0]?.name).toEqual(
'UnexpectedTokenWarningError',
)
expect(result.errorObjects[0]?.message).toEqual(
'syntax error at or near "CREATEe"',
)
})
})
})

0 comments on commit 04ee3c8

Please sign in to comment.