This repository was archived by the owner on Feb 22, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -134,15 +134,17 @@ main() {
134
134
_.rootScope.apply ();
135
135
_.rootScope.context['dynCls' ] = 'foo' ;
136
136
_.rootScope.apply ();
137
- expect (element.className).toEqual ('ui-panel ui-selected foo' );
137
+ // TODO(deboer): Abstract ng-binding
138
+ expect (element.className.replaceAll (' ng-binding' , '' )).toEqual ('ui-panel ui-selected foo' );
138
139
});
139
140
140
141
141
142
it ('should not add duplicate classes' , () {
142
143
var element = _.compile ('<div class="panel bar" ng-class="dynCls"></div>' );
143
144
_.rootScope.context['dynCls' ] = 'panel' ;
144
145
_.rootScope.apply ();
145
- expect (element.className).toEqual ('panel bar' );
146
+ // TODO(deboer): Abstract ng-binding
147
+ expect (element.className.replaceAll (' ng-binding' , '' )).toEqual ('panel bar' );
146
148
});
147
149
148
150
@@ -152,7 +154,8 @@ main() {
152
154
_.rootScope.apply ();
153
155
_.rootScope.context['dynCls' ] = 'window' ;
154
156
_.rootScope.apply ();
155
- expect (element.className).toEqual ('bar window' );
157
+ // TODO(deboer): Abstract ng-binding
158
+ expect (element.className.replaceAll (' ng-binding' , '' )).toEqual ('bar window' );
156
159
});
157
160
158
161
You can’t perform that action at this time.
0 commit comments