aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/service/deferSpec.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/service/deferSpec.js b/test/service/deferSpec.js
index 932c3661..8ac1b803 100644
--- a/test/service/deferSpec.js
+++ b/test/service/deferSpec.js
@@ -66,4 +66,11 @@ describe('$defer', function() {
$browser.defer.flush();
expect(eval).wasCalled();
});
+
+ it('should allow you to specify the delay time', function(){
+ var defer = this.spyOn($browser, 'defer');
+ $defer(noop, 123);
+ expect(defer.callCount).toEqual(1);
+ expect(defer.mostRecentCall.args[1]).toEqual(123);
+ });
});