test router using file protocol as start point
This commit is contained in:
parent
20da8d3dc8
commit
8ec3a3f2c5
6 changed files with 686 additions and 676 deletions
|
|
@ -2,9 +2,11 @@
|
|||
|
||||
var parseURL = require("../test-utils/parseURL")
|
||||
|
||||
module.exports = function() {
|
||||
var protocol = "http:"
|
||||
var hostname = "localhost"
|
||||
module.exports = function(options) {
|
||||
if (options == null) options = {}
|
||||
|
||||
var protocol = options.protocol || "http:"
|
||||
var hostname = options.hostname || "localhost"
|
||||
var port = ""
|
||||
var pathname = "/"
|
||||
var search = ""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue