init
This commit is contained in:
14
lib/modules/test/end.js
Normal file
14
lib/modules/test/end.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const expect = require('chai').expect
|
||||
const end = require('../end')
|
||||
const context = require('./context')()
|
||||
|
||||
describe('modules.end', function() {
|
||||
it('should close the output stream', function() {
|
||||
end(context)
|
||||
expect(context.output.end.called).to.be.true
|
||||
})
|
||||
|
||||
afterEach(function() {
|
||||
context.output.end.reset()
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user