-
-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
renamed 'Verifier' -> 'Mock' and updated docs #1
Conversation
Coverage remained the same at 75.862% when pulling 6168625b7ef185e4c90a1206aec4dd55e7b2afc1 on feature/docs into 9752eb9 on master. |
|
||
Check out [Pact JS Mocha](https://github.com/pact-foundation/pact-js-mocha). | ||
|
||
#### Using Jasmine? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jasmine is WIP and far more complicated to setup than Mocha. I would remove this line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough, I noticed it had no docs so makes sense. When in doubt, leave it out!
@mefellows not sure if Perhaps we should reduce the scope of this file? |
@tarciosaraiva I think so. It probably just confuses things more. Looking at it holistically, I actually think it's preferable to bring that functionality into the e.g. this sort of thing: pact = Pact({ consumer: 'My Consumer', provider: 'My Provider' })
...
pact.interaction()
.given('i have a list of projects')
.uponReceiving('a request for projects')
.withRequest('get', '/projects', null, { 'Accept': 'application/json' })
.willRespondWith(200, { 'Content-Type': 'application/json' }, EXPECTED_BODY)
pact.verify(requestProjects)
... What do you think? The code can still be kept modularised if that helps organise things. |
Yup, I do like that, better experience. Keep in mind that the Was thinking of passing the control of this store back to the developer and he just provides it to the Verifier function but in two minds with it. Thoughts? |
Nice. Can you provide an example of what you mean? My brain is at that point of the week where making that leap is tough ;) |
What I mean is that instead of the
Also, we need an |
Ahhh. Gotcha. I think I prefer the function interface |
Ya, it's really a design decision, don't think there's an advantage over On Sat, 11 Jun 2016, 07:17 Matt Fellows notifications@github.com wrote:
|
👍 How about I re-submit the PR (i.e. just docs) without the code changes and we separate them out? |
Yup, let's do that. |
b3cfc91
to
21a8af3
Compare
This is just an FYI for discussion.