Comparing version 1.1.0 to 1.1.1
module.exports = { | ||
realBase: require('./lib/realBase'), | ||
replaceExtension: require('./lib/replaceExtension'), | ||
prettyTime: require('./lib/prettyTime'), | ||
colors: require('chalk'), | ||
@@ -5,0 +6,0 @@ log: require('./lib/log'), |
{ | ||
"name": "gulp-util", | ||
"description": "Utility functions for gulp plugins", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"homepage": "http://github.com/wearefractal/gulp-util", | ||
@@ -6,0 +6,0 @@ "repository": "git://github.com/wearefractal/gulp-util.git", |
@@ -21,2 +21,32 @@ var util = require('../'); | ||
describe('prettyTime()', function(){ | ||
it('should work with seconds', function(done){ | ||
util.prettyTime(1.5).should.eql({ | ||
value: 1.5, | ||
unit: "seconds", | ||
shortUnit: "s" | ||
}); | ||
done(); | ||
}); | ||
it('should work with milliseconds', function(done){ | ||
util.prettyTime(0.5).should.eql({ | ||
value: 500, | ||
unit: "milliseconds", | ||
shortUnit: "ms" | ||
}); | ||
done(); | ||
}); | ||
it('should work with milliseconds', function(done){ | ||
util.prettyTime(0.01).should.eql({ | ||
value: 10, | ||
unit: "milliseconds", | ||
shortUnit: "ms" | ||
}); | ||
done(); | ||
}); | ||
}); | ||
describe('template()', function(){ | ||
@@ -23,0 +53,0 @@ it('should work with just a template', function(done){ |
9372
12
160