Files
2026-05-13 20:03:28 +03:00

15 lines
333 B
JavaScript

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()
})
})