-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLI port and host options were ignored when connecting
- Loading branch information
Showing
2 changed files
with
50 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"use strict"; | ||
//Define the modules required to mocha testing | ||
const assert = require("chai").assert; | ||
const http = require ("http"); | ||
const expect = require("chai").expect; | ||
const should = require("should"); | ||
const aws = require ("aws-sdk"); | ||
const seeder = require("../src/seeder.js"); | ||
const Plugin = require("../index.js"); | ||
|
||
const serverlessMock = require("./serverlessMock"); | ||
|
||
describe("command line options",function(){ | ||
describe("for 'start' command",function(){ | ||
let service; | ||
before(function(){ | ||
this.timeout(60000); | ||
service = new Plugin(serverlessMock, { port: 8123, host: "home.local" }); | ||
//return service.startHandler(); | ||
}); | ||
|
||
it(".port should return cli option",function(){ | ||
assert.equal(service.port, 8123); | ||
}); | ||
|
||
it(".host should return cli option",function(){ | ||
assert.equal(service.host, 'home.local'); | ||
}); | ||
}); | ||
}); |