I added a lot of unit testing to my ShoppingTotal widget. The source code is here:
https://github.com/xerocross/xerocross.shop. It might be useful as an example to someone. Also, the widget itself is hosted here: http://www.widgetwonk.com/Vue/ShoppingTotal.