MXS-1300: Make the MaxCtrl core a Node.js module
The core is now a module that is loaded by the command line client. This allows the core library to be reused for testing.
This commit is contained in:
@ -8,10 +8,8 @@ describe("Server states", function() {
|
||||
})
|
||||
})
|
||||
|
||||
var ctrl = require('../core.js')
|
||||
var opts = {
|
||||
extra_args: [ '--quiet']
|
||||
}
|
||||
var ctrl = require('maxctrl-core')
|
||||
var opts = { extra_args: [ '--quiet'] }
|
||||
|
||||
it('set correct state', function() {
|
||||
return ctrl.execute('set server server2 master'.split(' '), opts)
|
||||
|
||||
Reference in New Issue
Block a user