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

27
lib/modules/test/team.js Normal file
View File

@@ -0,0 +1,27 @@
const expect = require('chai').expect
const team = require('../team')
const context = require('./context')()
describe('modules.team', function() {
it('should write a team object', function(done) {
team(context)
.then(function (c) {
expect(c).to.equal(context)
expect(c.output.write.args[0][0]).to.deep.equal({
type: 'team',
team: {
name: 'test',
display_name: 'Test Team',
description: 'Our Test Team',
type: 'I',
allow_open_invite: false
}
})
done()
})
})
afterEach(function() {
context.output.write.reset()
})
})