Permalink
Browse files

Added coverage for jasmine#Waits

  • Loading branch information...
1 parent 27c1b5c commit cdc7f40272016eea72386bc4e03b7dc81debc2dc @ibolmo committed Apr 18, 2011
Showing with 12 additions and 1 deletion.
  1. +12 −1 src-test/tests.js
View
@@ -101,7 +101,7 @@ describe('should not have run', function(){
});
});
-describe('a failing suite, ignore', function(){
+xdescribe('a failing suite, ignore', function(){
it('should fail', function(){
expect(false).toBe(true);
});
@@ -139,4 +139,15 @@ describe('should support multiple spies and subsequent actual calls', function()
});
});
+describe("jasmine#Waits", function() {
+ var interval = 200;
+ var now = +new Date();
+ it('waits for async assertions', function() {
+ waits(interval);
+ runs(function() {
+ expect(+new Date() - now).toBeGreaterThan(interval);
+ });
+ });
+});
+
})();

0 comments on commit cdc7f40

Please sign in to comment.