jvandemo / generator-angularjs-library

A generator for Yeoman to generate the boilerplate for creating an AngularJS library
117 stars 33 forks source link

What do tests look like in this framework? #29

Closed LOZORD closed 9 years ago

LOZORD commented 9 years ago

It might be nice to provide an example test. I understand Mocha, Chai, Sinon, etc. However, how would one go about testing services using this framework?

LOZORD commented 9 years ago

Just to be clear, myLibSpec.js is nice to have, but it doesn't really show how services, etc. are tested in the framework. I've spent a lot of time on SO looking at scary inject and angular.mock.module code, and I don't know what methodology is correct to use under this framework.

jvandemo commented 9 years ago

@LOZORD — Thanks for the PR, has been merged!