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

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