Skip to content

Commit

Permalink
Test for empty src list
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaub committed Oct 22, 2014
1 parent 8844969 commit 73f9bf4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/lib/util.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,16 @@ describe('util', function() {
});
});

it('calls callback with false if no files are provided', function(done) {
util.anyNewer([], new Date(), nullOverride, function(err, newer) {
if (err) {
return done(err);
}
assert.isFalse(newer);
done();
});
});

it('calls override with older file and time', function(done) {
function override(filePath, time, include) {
assert.equal(filePath, 'src/js/a.js');
Expand Down

0 comments on commit 73f9bf4

Please sign in to comment.