Skip to content

mboudreau/pact-node-dsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Pact DSL

A DSL library to describe Pact behaviour to the mock server.

Usage

Node

npm install pact-dsl --save-dev

Grunt

Gulp

Contributing

To develop this project, simply install the dependencies and run npm watch to for continual development, linting and testing when a source file changes.

Testing

Running npm test will execute the tests that has the *.spec.js pattern.

dsl.given('an http query') .uponReceiving('a search GET request with a query') .withRequest({method: 'get', path: '/_search', query: term('q=.*', 'q=test'), headers: requestHeaders}) .willRespondWith({ status: 200, headers: responseHeaders, body: mockWithResults });

About

The DSL to generate the specification

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages