Skip to content

BaReinhard/hangout-chat-tester

Repository files navigation

hangout-chat-tester NPM version Build Status Dependency Status Coverage percentage

A testing "library" exported as a single function to test locally whether your payload will will render in hangouts chat

Installation

$ npm install --save hangout-chat-tester

Usage

// 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"});
}

License

Apache-2.0 © BaReinhard

About

A testing "library" exported as a single function to test locally whether your payload will will render in hangouts chat

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published