diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6102951..23a1470 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -2,7 +2,7 @@ This Project uses Semantic Versioning. More information can be found [here](http The branch and tag names also follow the following convention: - branches: ```v-x.y.z``` -- tags: ```v.x.y.z``` +- tags: ```vx.y.z``` You only need to follow this convention when creating a Pull Request for a full npm release. diff --git a/task/clean.js b/task/clean.js index 887c393..3f871e7 100644 --- a/task/clean.js +++ b/task/clean.js @@ -1,7 +1,7 @@ const promisify = require('util').promisify; const glob = promisify(require('glob')); -const del = require('del'); +const del = require('del'); (async () => { diff --git a/test/isolation/RequestSpy.dev.spec.ts b/test/isolation/RequestSpy.dev.spec.ts index f8d24e6..3817630 100644 --- a/test/isolation/RequestSpy.dev.spec.ts +++ b/test/isolation/RequestSpy.dev.spec.ts @@ -16,6 +16,11 @@ describe('class: RequestSpy', (): void => { }); }); + it('returns accepted pattern', (): void => { + let requestSpy: RequestSpy = new RequestSpy('some-pattern/**/*'); + assert.deepStrictEqual(requestSpy.getPatterns(), ['some-pattern/**/*']); + }); + it('multiple matched requests increases matchCount', (): void => { let requestSpy: RequestSpy = new RequestSpy('some-pattern/**/*');