This commit is contained in:
2026-05-13 19:58:16 +03:00
commit f5adeb292b
78 changed files with 12024 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
const expect = require('chai').expect
const version = require('../version')
const context = require('./context')()
describe('modules.version', function() {
it('should write a version object', function(done) {
version(context)
.then(function (c) {
expect(c).to.equal(context)
expect(c.output.write.args[0][0]).to.deep.equal({
type: 'version',
version: 1
})
done()
})
})
afterEach(function() {
context.output.write.reset()
})
})