我的<custom-directive>有replace:true和template: '<img />'。我该如何为它编写单元测试呢?我想我想测试一下它是否真的用img代替了自定义指令。it('should be transformed to <img>', function(){
var elm = $compile('<custom-directive></custom-directive
<div ng-repeat="product in pageCtrl.productList track by product.id"><custom-directiveng-model="product.recentPriceHistory"></custom-directive>每当向产品recentPriceHistory添加新值时