libraries: implement common set of assertions
zekth opened this issue · comments
Currently every library defines their own set of test data. eg:
standard-webhooks/libraries/javascript/src/webhook.test.ts
Lines 7 to 9 in ff0f07f
standard-webhooks/libraries/go/webhook_test.go
Lines 13 to 15 in ff0f07f
- etc.
We should at least consider a common set of data to be sure all implementations behave the same.
I completely agree, and I think they are different across libraries. Though the two examples you shared look identical to me?
Correct, but that would avoid potential drifting between libraries. Just a thought
Oh, sorry, I misunderstood your suggestion. Yes, I agree, the test suite should use a common set of data, and we should read that and validate the same across all of the libs.