mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-20 22:42:53 -05:00
Fixed overly specific assertion
- Asserting for the exact error message thrown was a bad idea as it is different between different versions of Node... derp - Also, don't really care, I'm just asserting that the serialize function errors under certain conditions
This commit is contained in:
parent
d01c1cba64
commit
b6e9eadef9
1 changed files with 1 additions and 2 deletions
|
@ -35,8 +35,7 @@ describe('WebhookService - Serialize', function () {
|
|||
await serialize('fake.hook');
|
||||
},
|
||||
(error) => {
|
||||
assert.strictEqual(error.name, 'TypeError');
|
||||
assert.strictEqual(error.message, 'Cannot read properties of undefined (reading \'attributes\')');
|
||||
assert.equal(error.name, 'TypeError');
|
||||
return true;
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Add table
Reference in a new issue