Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Unit Testing

Amin Marashi edited this page Mar 15, 2016 · 2 revisions

#Unit Testing Important: Please be aware that the unit tests involve purchasing a default contract, therefore to avoid losing money make sure you are NOT logged in with your real money account before running the unit tests.

Jasmine tests are written for the script to ensure it's working as expected. The test are loaded dynamically and if only a unit testing is requested. ##Request a Unit Testing The script checks for a variable in window named runUnitTest for being truthy. The variable has to be set before the page is loaded completely. To set the variable run this in the developer console of your favorite browser.

var runUnitTest = true;
Clone this wiki locally