Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
update(test): simplify now() test
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBurleson committed Aug 11, 2015
1 parent 53c1f09 commit 514927a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/core/util/util.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,9 @@ describe('util', function() {

describe('now',function(){

it('returns proper values', inject(function($mdUtil, $timeout) {
var t1 = $mdUtil.now(), t2;

it('returns proper time values', inject(function($mdUtil, $timeout) {
var t1 = $mdUtil.now();
expect( t1 ).toBeGreaterThan(0);

$timeout(function() {
t2 = $mdUtil.now();
},10,false);

$timeout.flush();
expect( t2 - t1 ).toBeGreaterThan(0);
}));

});
Expand Down

0 comments on commit 514927a

Please sign in to comment.