init
This commit is contained in:
38
lib/modules/test/context.js
Normal file
38
lib/modules/test/context.js
Normal file
@@ -0,0 +1,38 @@
|
||||
const { spy, stub } = require('sinon')
|
||||
|
||||
module.exports = function() {
|
||||
return {
|
||||
config: {
|
||||
source: {
|
||||
uri: 'mssql://username:password@server:1433/jabber?encrypt=true'
|
||||
},
|
||||
target: {
|
||||
filename: 'data.json'
|
||||
},
|
||||
define: {
|
||||
team: {
|
||||
name: 'test',
|
||||
display_name: 'Test Team',
|
||||
description: 'Our Test Team',
|
||||
type: 'I',
|
||||
allow_open_invite: false
|
||||
},
|
||||
user: {
|
||||
auth_service: 'ldap',
|
||||
}
|
||||
}
|
||||
},
|
||||
jabber: {
|
||||
connect: stub().returns(Promise.resolve()),
|
||||
fetch: stub(),
|
||||
pipe: stub()
|
||||
},
|
||||
values: {
|
||||
|
||||
},
|
||||
output: {
|
||||
write: spy(),
|
||||
end: spy()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user