Skip to content

Commit

Permalink
Move urlUtils into a separate utils directory
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuens committed Dec 8, 2017
1 parent 5f8fe9a commit 377e5d3
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/deleteFunction.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const urlUtils = require('./urlUtils')
const urlUtils = require('./utils/url')

module.exports = (config, params) =>
config
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const configure = require('./configure')
const resetConfiguration = require('./resetConfiguration')
const emit = require('./emit')
const invoke = require('./invoke')
const urlUtils = require('./urlUtils')
const urlUtils = require('./utils/url')

const eventGateway = configuration => {
if (
Expand Down
2 changes: 1 addition & 1 deletion lib/listFunctions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const urlUtils = require('./urlUtils')
const urlUtils = require('./utils/url')

module.exports = config =>
config
Expand Down
2 changes: 1 addition & 1 deletion lib/listSubscriptions.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const urlUtils = require('./urlUtils')
const urlUtils = require('./utils/url')

module.exports = config =>
config
Expand Down
2 changes: 1 addition & 1 deletion lib/registerFunction.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const urlUtils = require('./urlUtils')
const urlUtils = require('./utils/url')

module.exports = (config, params) =>
config
Expand Down
2 changes: 1 addition & 1 deletion lib/subscribe.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const urlUtils = require('./urlUtils')
const urlUtils = require('./utils/url')

module.exports = (config, params) =>
config
Expand Down
2 changes: 1 addition & 1 deletion lib/unsubscribe.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const urlUtils = require('./urlUtils')
const urlUtils = require('./utils/url')

module.exports = (config, params) =>
config
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const urlUtils = require('../lib/urlUtils')

const urlUtils = require('../lib/utils/url')

test('should add the port 4001 to a url without a port', () => {
expect(urlUtils.generateConfigureUrl('http://localhost')).toEqual('http://localhost:4001/')
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const urlUtils = require('../lib/urlUtils')
const urlUtils = require('../lib/utils/url')

test('should join a url with a slash + a path with a slash', () => {
expect(urlUtils.joinUrlWithPath('http://localhost', '/test')).toEqual('http://localhost/test')
Expand Down

0 comments on commit 377e5d3

Please sign in to comment.