derberg / python-mqtt-client-template

This template generates MQTT Python client module. Its purpose is to abstract for the application client technical information about the broker and the names of topics it should use. Instead, it generates a module that provides a set of indent-driven functions that one can invoke to send a message to the application through the message broker.
2 stars 1 forks source link

setup unit testing for `utils.js` #22

Open derberg opened 2 weeks ago

derberg commented 2 weeks ago

and test first until - you pick one

for happy and not happy paths.

use jest as test runner

example template with unit tests https://github.com/asyncapi/html-template/blob/master/test/helpers/all.test.js