From c8881ff07ba78220974673bace0c40b15d254176 Mon Sep 17 00:00:00 2001 From: Jacob Boland Date: Wed, 16 Oct 2013 09:33:51 -0700 Subject: [PATCH] Add IAttributes tests --- angularjs/angular-tests.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/angularjs/angular-tests.ts b/angularjs/angular-tests.ts index 6a6892f57..bcfe31d16 100644 --- a/angularjs/angular-tests.ts +++ b/angularjs/angular-tests.ts @@ -182,6 +182,7 @@ mod.value('name', 23); mod.value('name', "23"); mod.value(My.Namespace); + // Promise signature tests var foo: ng.IPromise; foo.then((x) => { @@ -217,3 +218,17 @@ var element = angular.element("div.myApp"); var scope: ng.IScope = element.scope(); + +function test_IAttributes(attributes: ng.IAttributes){ + return attributes; +} + +test_IAttributes({ + $addClass: function (classVal){}, + $removeClass: function(classVal){}, + $set: function(key, value){}, + $observe: function(name, fn){ + return fn; + }, + $attr: {} +});