Skip to content

Commit

Permalink
feat(interceptor): remove Interceptor from DSL
Browse files Browse the repository at this point in the history
  • Loading branch information
tarciosaraiva committed Aug 21, 2016
1 parent 05bd5bd commit 0b9e4f4
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 316 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ addons:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
before_install:
- npm install mitm
script: npm run dist
after_success:
- npm run coverage
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@
"lodash.isfunction": "3.0.8",
"lodash.isnil": "4.0.0",
"lodash.isundefined": "3.0.1",
"lodash.omitby": "4.4.0",
"mitm": "1.2.1"
"lodash.omitby": "4.4.0"
},
"devDependencies": {
"@pact-foundation/pact-node": "4.5.1",
Expand Down
95 changes: 0 additions & 95 deletions src/interceptor/index.js

This file was deleted.

4 changes: 1 addition & 3 deletions src/pact.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ var MockService = require('./dsl/mockService').default
var Interaction = require('./dsl/interaction').default
var responseParser = require('./common/responseParser').default

var Interceptor = require('./interceptor').default
var Matchers = require('./dsl/matchers')

/**
Expand All @@ -21,7 +20,7 @@ var Matchers = require('./dsl/matchers')
* @param {String} consumer - the name of the consumer
* @param {String} provider - the name of the provider
* @param {number} port - port of the mock service, defaults to 1234
* @returns {Object} Pact - returns an {@link Interceptor}, a {@link Matcher#term}, a {@link Matcher#eachLike}, a {@link Matcher#somethingLike} and an {@link Interaction}.
* @returns {Object} Pact - returns a {@link Matcher#term}, a {@link Matcher#eachLike}, a {@link Matcher#somethingLike} and an {@link Interaction}.
*/
module.exports = ({consumer, provider, port = 1234, host = '127.0.0.1', ssl = false}) => {
if (isNil(consumer)) {
Expand Down Expand Up @@ -93,4 +92,3 @@ module.exports = ({consumer, provider, port = 1234, host = '127.0.0.1', ssl = fa
}

module.exports.Matchers = Matchers
module.exports.Interceptor = Interceptor
146 changes: 0 additions & 146 deletions test/dsl/integration_with_interceptor.spec.js

This file was deleted.

68 changes: 0 additions & 68 deletions test/interceptor/index.spec.js

This file was deleted.

0 comments on commit 0b9e4f4

Please sign in to comment.