opitzconsulting / jquery-mobile-angular-adapter

jquery mobile angular adapter
MIT License
517 stars 114 forks source link

Tutorial for unit testing jqm directives #171

Open tbosch opened 11 years ago

tbosch commented 11 years ago

You need to use test/lib/unittestutils.js.

Right now, this relies on angular-mocks v.1.0.1. Can we update angular-mocks to a current version?

Tobias

tbosch commented 11 years ago

Bug in unittestUtil.js: $.fn.addClass only has 1 Parameter, but:

lib/unittestUtils.js: page.addClass("temp", "true"); lib/unittestUtils.js: wrapperElement.children().addClass("result", "true"); lib/unittestUtils.js: return $(".result").removeClass("result").addClass("temp", "true");

drd0rk commented 11 years ago

is there a version of unittestutils.js for mocha instead of jasmine?

tbosch commented 11 years ago

Sorry, not yet :-(