davidjsherman / thymio-scratchx

A ScratchX extension for Thymio
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Unit testing #3

Open davidjsherman opened 7 years ago

davidjsherman commented 7 years ago

Unit testing of the ThymioBlocks library (#2) should be defined using Karma and Jasmine.

Most blocks translate into HTTP calls to asebahttp, so most unit testing will involve capturing the AJAX call, verifying the request parameters, and possibly mocking the result. Jasmine-ajax should be used.