mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-24 08:29:53 +00:00
test(before) config, plugin -> options
This commit is contained in:
parent
4d14071ede
commit
ba93a87eed
5 changed files with 38 additions and 50 deletions
|
|
@ -21,7 +21,7 @@ test('cloudcmd: console: enabled by default', (t) => {
|
|||
test('cloudcmd: console: enabled', (t) => {
|
||||
const config = {console: true};
|
||||
|
||||
before(config, (port, after) => {
|
||||
before({config}, (port, after) => {
|
||||
const socket = io(`http://localhost:${port}/console`)
|
||||
|
||||
socket.once('data', (data) => {
|
||||
|
|
@ -36,7 +36,7 @@ test('cloudcmd: console: enabled', (t) => {
|
|||
test('cloudcmd: console: disabled', (t) => {
|
||||
const config = {console: false};
|
||||
|
||||
before(config, (port, after) => {
|
||||
before({config}, (port, after) => {
|
||||
const socket = io(`http://localhost:${port}/console`);
|
||||
|
||||
socket.on('error', (error) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue