We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 349000c commit e2c0036Copy full SHA for e2c0036
test/ng/directive/asSpec.js
@@ -1,6 +1,6 @@
1
'use strict';
2
3
-describe('a', function() {
+describe('as', function() {
4
5
it('should bind in the current scope the controller of a component', function() {
6
var expected = {some: 'value'};
@@ -79,7 +79,7 @@ describe('a', function() {
79
80
expect(scope.$ctrl).toBe($ctrl);
81
expect($ctrl.myDiv).not.toBeUndefined();
82
- expect($ctrl.myDiv && $ctrl.myDiv.innerText).toBe('SUCCESS');
+ expect($ctrl.myDiv && $ctrl.myDiv.textContent).toBe('SUCCESS'); // https://jsperf.com/innerhtml-vs-innertext/49
83
dealoc(element);
84
scope.$destroy();
85
}));
0 commit comments