@pact-foundation/pact-node
Advanced tools
Comparing version 10.9.3 to 10.9.4
@@ -5,2 +5,11 @@ # Change Log | ||
## [10.9.4](https://github.com/pact-foundation/pact-node/compare/v10.9.3...v10.9.4) (2020-05-04) | ||
### Bug Fixes | ||
* **options:** Stop validating values for logLevel, pactFileWriteMode and format. This means we'll immediately pick up changes to those options without needing to modify pact-node ([1319a86](https://github.com/pact-foundation/pact-node/commit/1319a86d87d4ffd60a58146150f62a96f4ef9f35)) | ||
## [10.9.3](https://github.com/pact-foundation/pact-node/compare/v10.9.2...v10.9.3) (2020-05-02) | ||
@@ -7,0 +16,0 @@ |
{ | ||
"name": "@pact-foundation/pact-node", | ||
"version": "10.9.3", | ||
"version": "10.9.4", | ||
"description": "A wrapper for the Ruby version of Pact to work within Node", | ||
@@ -126,3 +126,3 @@ "main": "src/index.js", | ||
"pretest": "npm run prettier:check && npm run build && npm run download-checksums && npm run install:current", | ||
"test": "cross-env LOGLEVEL=debug PACT_DO_NOT_TRACK=true mocha -r ts-node/register -R mocha-unfunk-reporter -t 15000 -s 5000 -b --check-leaks --exit \"{src,test,bin,standalone}/**/*.spec.ts\"", | ||
"test": "cross-env LOGLEVEL=debug PACT_DO_NOT_TRACK=true mocha -r ts-node/register -R mocha-unfunk-reporter -t 15000 -s 5000 --check-leaks --exit \"{src,test,bin,standalone}/**/*.spec.ts\"", | ||
"dev": "npm run lint --force && npm test && node .", | ||
@@ -129,0 +129,0 @@ "watch": "nodemon -e ts,json --ignore '**/*.d.ts' -x npm run dev", |
@@ -57,3 +57,2 @@ "use strict"; | ||
} | ||
checkTypes.assert.includes(['overwrite', 'update', 'merge'], options.pactFileWriteMode); | ||
this.options = options; | ||
@@ -60,0 +59,0 @@ } |
@@ -59,6 +59,4 @@ "use strict"; | ||
} | ||
checkTypes.assert.includes(['overwrite', 'update', 'merge'], options.pactFileWriteMode); | ||
if (options.logLevel) { | ||
options.logLevel = options.logLevel.toLowerCase(); | ||
checkTypes.assert.includes(['debug', 'info', 'warn', 'error'], options.logLevel); | ||
} | ||
@@ -65,0 +63,0 @@ if (options.monkeypatch) { |
@@ -76,16 +76,2 @@ "use strict"; | ||
}); | ||
it('should fail if incorrect pactFileWriteMode provided', function () { | ||
expect(function () { | ||
return server_1.default({ | ||
pactFileWriteMode: 'notarealoption', | ||
}); | ||
}).to.throw(Error); | ||
}); | ||
it('should fail if incorrect logLevel provided', function () { | ||
expect(function () { | ||
return server_1.default({ | ||
logLevel: 'nolog', | ||
}); | ||
}).to.throw(Error); | ||
}); | ||
}); | ||
@@ -92,0 +78,0 @@ context('when valid options are set', function () { |
@@ -144,3 +144,2 @@ "use strict"; | ||
checkTypes.assert.string(options.format); | ||
checkTypes.assert.match(options.format, /^(xml|json|progress)$/i); | ||
if (options.format.toLowerCase() === 'xml') { | ||
@@ -147,0 +146,0 @@ options.format = 'RspecJunitFormatter'; |
@@ -200,11 +200,2 @@ "use strict"; | ||
}); | ||
it('should throw an error with the wrong string', function () { | ||
expect(function () { | ||
return verifier_1.default({ | ||
providerBaseUrl: 'http://localhost', | ||
pactUrls: ['http://idontexist'], | ||
format: 'jsonformat', | ||
}); | ||
}).to.throw(Error); | ||
}); | ||
it('should work with a case insensitive string', function () { | ||
@@ -211,0 +202,0 @@ expect(function () { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
434202
5862