0
Fork 0
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:
Hannah Wolfe 2022-05-03 11:59:50 +01:00
parent d01c1cba64
commit b6e9eadef9
No known key found for this signature in database
GPG key ID: AB586C3B5AE5C037

View file

@ -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;
}
);