aboutsummaryrefslogtreecommitdiffstats
path: root/test/AngularSpec.js
diff options
context:
space:
mode:
authorIgor Minar2012-03-09 14:49:40 -0800
committerIgor Minar2012-03-09 16:27:12 -0800
commit4a94bb9b345946a9efd51adaeedc0f907af4df49 (patch)
treedc6e46df05005bf5cb6b3470d819c6b8b2c4584e /test/AngularSpec.js
parent53aacb35fa469496c88a04a70ffab875e8b35d86 (diff)
downloadangular.js-4a94bb9b345946a9efd51adaeedc0f907af4df49.tar.bz2
fix(startTag): fix tagname extraction
the original code magically worked for ng:foo but for nothing else
Diffstat (limited to 'test/AngularSpec.js')
-rw-r--r--test/AngularSpec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/AngularSpec.js b/test/AngularSpec.js
index 7e070761..92949b66 100644
--- a/test/AngularSpec.js
+++ b/test/AngularSpec.js
@@ -512,7 +512,8 @@ describe('angular', function() {
describe('startingElementHtml', function(){
it('should show starting element tag only', function(){
- expect(startingTag('<ng-abc x="2"><div>text</div></ng-abc>')).toEqual('<ng-abc x="2">');
+ expect(startingTag('<ng-abc x="2A"><div>text</div></ng-abc>')).
+ toBeOneOf('<ng-abc x="2A">', '<NG-ABC x="2A">');
});
});