aboutsummaryrefslogtreecommitdiffstats
path: root/test/ExternalApiTest.js
blob: cc102ae07b0d6b64743ed09487b601f5da99e0cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
ExternalApiTest = TestCase("ExternalApiTest");

ExternalApiTest.prototype = {
  testItShouldExposefactory:function(){
    var node = $('<div ng-init="a=1">{{b=a+1}}</div>')[0];
    var scope = angular.compile(node);
    scope.init();
    assertEquals(1, scope.get('a'));
    assertEquals(2, scope.get('b'));
  },
  
  testItShouldRegisterAnchorListener: function (){
    
  }
};