How to test AngularJS directives

后端 未结 2 520
谎友^
谎友^ 2021-01-29 22:43

I am working on a Rails 3.2 app that will be using AngularJS. I can get Angular to do what I need, but I am having a very difficult time figuring out how to test what I\'m doing

2条回答
  •  没有蜡笔的小新
    2021-01-29 23:23

    Angular Test Patterns may help you, there are examples in both coffeescript and javascript.

    Here's a testing pattern to verify the example directive is rendering the expected output.

提交回复
热议问题