A testing "library" exported as a single function to test locally whether your payload will will render in hangouts chat
$ npm install --save hangout-chat-tester
// Usage in test files
const isValid = require('hangout-chat-tester');
assert(isValid(cardObject))
// Usage in source code
const isValid = require('hangout-chat-tester');
if(isValid(cardObject)){
res.send(cardObject);
}else{
res.send({text:"An error occurred"});
}
Apache-2.0 © BaReinhard