com.greencatsoft.angularjs
Provides an injector for your test suites.
Setup for example like this:
class MyDirectiveSpec extends FunSpec with AngularTestEnvironment with ScopeOps with MustMatchers { override val module = Angular.module("app", Seq("ngAnimate", "ngMaterial")).directive[MyDirective] override val moduleName = "app" describe("MyDirective") { it("must render") { val scope = inject[RootScope].$new(true) scope.dynamic.greeting = "Hello World!" val tag = """">""" val element = inject[Compile](tag)(scope, null) scope.$digest() element.textContent must be ("Hello World!") } } }
Provides an injector for your test suites.
Setup for example like this: