express-live-reloading
Version:
Live reloading middleware express
32 lines (18 loc) • 677 B
JavaScript
const
{assert,expect} = require('chai')
,watcherCloseSuccessTest = require('./../lib/watchers-close.success')
;
describe('test `close watchers success` module' , () => {
it('should be an function' , () => {
assert.isFunction( watcherCloseSuccessTest ) ;
} ) ;
it('should return an function' , () => {
assert.isFunction( watcherCloseSuccessTest() ) ;
} ) ;
it('should return undefined' , () => {
assert.isUndefined( watcherCloseSuccessTest()() ) ;
it('should have hydrate env vars' , () => {
assert.isObject( process.liveReload ) ;
} ) ;
} ) ;
} ) ;