expect specific errors
Signed-off-by: Brian DeHamer <[email protected]>
This commit is contained in:
@@ -90,7 +90,7 @@ describe('predicateFromInputs', () => {
|
||||
predicate: 'not valid json'
|
||||
}
|
||||
|
||||
await expect(predicateFromInputs(inputs)).rejects.toThrow()
|
||||
await expect(predicateFromInputs(inputs)).rejects.toThrow(/JSON/)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -136,7 +136,7 @@ describe('predicateFromInputs', () => {
|
||||
predicatePath: filePath
|
||||
}
|
||||
|
||||
await expect(predicateFromInputs(inputs)).rejects.toThrow()
|
||||
await expect(predicateFromInputs(inputs)).rejects.toThrow(/JSON/)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user