clarkio / vscode-twitch-highlighter

This is a VS Code extension that will allow your Twitch chat to highlight a line of code via a command message. Example: `!line 8 server.js`. See master branch README.md for more details
https://clarkio.com
203 stars 14 forks source link

Added a test theory for our bot command #79

Closed parithon closed 5 years ago

parithon commented 5 years ago

Purpose

We need some tests to ensure that the parseMessage function is working as we expect.

I have added a test using a 'theory' concept in order to allow us to do multiple parameterized tests against the parseMessage function without having to add a new test for each 'theory' we want to examine.

I have added 9 theories to the test which hopefully handles the majority of the options end-users might try while using our extension.

Added Files

Changed Files