Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/nock/nock
HTTP server mocking and expectations library for Node.js
https://github.com/nock/nock
* refactor(test): Mocha DSL for ClientRequest, complex query, & Content Encoding
* refactor(t...
9348d65d80f7e7212e86901148eaed1caad03bdd authored almost 5 years ago by Matt R. Wilson <[email protected]>Also migrated a couple tests from request > got.
92575b6b3c5731f2fd8289f353c210c683eb65ab authored almost 5 years ago by Matt R. Wilson <[email protected]>bcdb4d03f76ec7caec5c18b23f9d85695fd5b57b authored almost 5 years ago by Matt R. Wilson <[email protected]>
Following the same pattern used to HTTPS local servers, added a utility
that creates and listen...
Bumps [acorn](https://github.com/acornjs/acorn) from 7.1.0 to 7.1.1.
- [Release notes](https://g...
290889441e714f2f59992537bbd6b65ec3440618 authored almost 5 years ago by Matt R. Wilson <[email protected]>
The tests themselves were not modified, but they were reorganized so the git diff is a mess.
21f2d8860b1da4f65945eec46223d473a61dd751 authored almost 5 years ago by Matt R. Wilson <[email protected]>afbd3438464083e6feb76ede2a87c4db8da9cdac authored almost 5 years ago by Matt R. Wilson <[email protected]>
06767a2d154ef552d336a9fdba5cf60ee6eb417e authored almost 5 years ago by Matt R. Wilson <[email protected]>
f5821202bc37de53d4d6c834afea2ea07f039929 authored almost 5 years ago by Matt R. Wilson <[email protected]>
This method does not exist and was added on accident.
fa3c237b75847f9589684c5c48c4b2f0bba54f0a authored almost 5 years ago by Matt R. Wilson <[email protected]>Also, rename fixture files to use consistent snake_case.
2c6c9dd952957794885ef6d08a0670f7190aadd6 authored almost 5 years ago by Matt R. Wilson <[email protected]>9375dcddeb9ff2b70fd20f89c2a045b800e813ac authored almost 5 years ago by Matt R. Wilson <[email protected]>
0cfa0edcae8f6d08a6179069f7361aae0239ed11 authored almost 5 years ago by Matt R. Wilson <[email protected]>
9cbb707f17b3a2ee639b6c551291eeb5487d9e6b authored almost 5 years ago by Matt R. Wilson <[email protected]>
634ff2950b01677bdedea6e0ee340337aa4cf6be authored almost 5 years ago by Matt R. Wilson <[email protected]>
19bae0988e00fad6143afc0abd878e8488b6980b authored almost 5 years ago by Matt R. Wilson <[email protected]>
9dcd74775df082b3f8679beea7bb6ccba7ca7948 authored almost 5 years ago by Matt R. Wilson <[email protected]>
Now that we expect Node v10+, we can pass the `recursive` option to
`fs.mkdir`.
Fixes #1913
4bcefea48544dae250ddcf4baaef1342f3bbe0d4 authored almost 5 years ago by Gabe Gorelick <[email protected]>Ref #1285
1f47f1a1ee977df0414a9865d6f329247cb7398f authored almost 5 years ago by Paul Melnikow <[email protected]>fada855ee4298d3dacaeea830da80de0f0316b6c authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
d26f4f7de6ed3e730805d2bd5c21d143f7098fc9 authored almost 5 years ago by Matt R. Wilson <[email protected]>
a23af9763330fc16caa2d934d47b6ff03a2d1816 authored almost 5 years ago by Paul Melnikow <[email protected]>
We have a βcan take a portβ test.
c54cec172992d2fa76f68b481eb9398d482c18c0 authored almost 5 years ago by Paul Melnikow <[email protected]>dff1d0b5e1b12e2ee3e4d37abc00242324ace0bc authored almost 5 years ago by Paul Melnikow <[email protected]>
All in the name of prepping for Mocha DSL.
0a22aeb2d12b60329b6facaf9e828f736c8edaa9 authored almost 5 years ago by Matt R. Wilson <[email protected]>61fb7e0bd409d0fee4565891585a461849935f66 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
70a18b432f5c10d3fe70edab4c05381bf37c3aa6 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
* feat(1861): allow passing a function to enableNetConnect
* Add test to cover passed parameters
* chore(package): update got to version 10.0.0
* chore(package): update lockfile package-lock...
b8dd8c812bb17774fb6db4ca7e528461ae8137b0 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>BREAKING CHANGE: Drop support for String constructor (#1873)
When checking types of strings, No...
e33b3e86d047362d359f88f9df698f4f103a80ad authored almost 5 years ago by Paul Melnikow <[email protected]>BREAKING CHANGE: Do not return the `nock` global from `cleanAll()` (#1872)
0a4a944566116618bf8897d7dc6dcf943ba89fe6 authored almost 5 years ago by Paul Melnikow <[email protected]>BREAKING CHANGE: Require Node 10+ (#1895)
123832ebad65c70bc501cce2b656403382e234c5 authored almost 5 years ago by Paul Melnikow <[email protected]>addresses https://github.com/nock/nock/issues/1883#issuecomment-586746643
7fae3c8b2d921297afe0cdd1b22080367e4220ec authored almost 5 years ago by Gregor Martynus <[email protected]>29eed0571b97377e5a539079a5a06064d648ce9c authored almost 5 years ago by Natan SΔ gol <[email protected]>
d5e406273500ac95bfb67ddf921b1ebd442340ab authored almost 5 years ago by Natan SΔ gol <[email protected]>
858130e2a404d3ba03e5f8a10e439d7efa249f3d authored almost 5 years ago by Natan SΔ gol <[email protected]>
062c10e6ff6755d33090036f9796c33486f457b3 authored almost 5 years ago by Gregor Martynus <[email protected]>
* chore(package): update got to version 10.0.0
* chore(package): update lockfile package-lock...
a2757698d835a6de695559644a3dff38ddda406b authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>BREAKING CHANGE
When checking types of strings, Nock will no longer recognize the String cons...
6c504c372d45b1a39c6dd2729e1e47c7cd330f20 authored almost 5 years ago by Paul Melnikow <[email protected]>BREAKING CHANGE
9379f0984d05bb15b29758960b6edac018a97b6f authored almost 5 years ago by Paul Melnikow <[email protected]>e04d61df8d497d2dbacca777cb03a94809c99451 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
* feat(1861): allow passing a function to enableNetConnect
* Add test to cover passed parameters
BREAKING CHANGE
11c0542f4de439fb66c5c5315ba3314abfb7faba authored almost 5 years ago by Paul Melnikow <[email protected]>* refactor(test): use Mocha DSL for allow unmocked
1fae725c3d48be0eb3d516bacd52cc6be3b58fec authored almost 5 years ago by Matt R. Wilson <[email protected]>d0694a7b50dee6fb6370f416b8e3d7aef80846b5 authored almost 5 years ago by Gregor Martynus <[email protected]>
As mentioned in https://github.com/nock/nock/pull/1889, it appears that `assertRejects` is not c...
524dd29d6f252e3c3492b266b1b0dd77d09f9bda authored almost 5 years ago by Nikas Praninskas <[email protected]>Convert assertions to Chai, prefer await over callback when appropriate, and replace Mikeal's Re...
5d3b270886299878ea670744cab3c1644ad8c934 authored almost 5 years ago by Matt R. Wilson <[email protected]>Lolex was renamed.
5eaa5f5c3306e69804d58618def99893df70ca77 authored almost 5 years ago by Paul Melnikow <[email protected]>* fix: allowMocked when using a callback for the path
When an Interceptor was created with a ...
9fdeeca7009ba8dc1b4f83b36030527f011ab665 authored almost 5 years ago by Matt R. Wilson <[email protected]>
While debugging the Jest memory leak, I was surprised to find the Nock
was "activating" twice w...
* chore(package): update semantic-release to version 17.0.2
* pin tap because 14.10.6 causes un...
Updates the types to properly reflect that a Scope can be created with
the output of `url.parse...
The current implementation only supports `req.setTimeout`, but Node.js
allows for `options.time...
c209c6b8ca134e269a8733dd493d0bec9a4f75af authored almost 5 years ago by Paul Melnikow <[email protected]>
This is set in `got_client.js`.
eac299bd3653730ab35e33795885fd4fc2c50b57 authored almost 5 years ago by Paul Melnikow <[email protected]>e863c84c868c5bb4b59ffe89f9a7688cb443918a authored almost 5 years ago by Natan SΔ gol <[email protected]>
Thanks @kennethaasan for finding this fix!
Fix #1836
22e2fca27bc57ee1adb8559ed5da0fb1adbf8a93 authored almost 5 years ago by Paul Melnikow <[email protected]>921eacf91ec8b1f585e373436ce857bd9dd3c11a authored almost 5 years ago by Paul Melnikow <[email protected]>
* chore(package): update mocha to version 7.0.1
* chore(package): update lockfile package-loc...
e1461a26568753d2f6e75014dc684c3c564fcff7 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>Fix a regression in 11.7.1 due to Jest having different globals: https://github.com/facebook/jes...
c7363e56ee866635514e5aaa0319232b6edd1b61 authored almost 5 years ago by Salman Mitha <[email protected]>* chore(package): update dtslint to version 2.0.0
* chore(package): update lockfile package-l...
fad405aa39b6dd98ecdc70432170e7b31abcbd95 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>* chore(package): update sinon to version 8.0.0
* chore(package): update lockfile package-loc...
e0d8171d70ff08e2d44be34e77dcff42e6b49f66 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>24700599753d67b3408bf3dace5c5646b7202030 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
Closes #1818
bd39dffe94680c1358ceeedc4a05d165f686f8e7 authored almost 5 years ago by Salman Mitha <[email protected]>* chore(package): update nyc to version 15.0.0
* chore(package): update lockfile package-lock...
e86a54259a346add73d71d12697047fc9a994718 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>937010ecad7ebd2ab4c6b8f5b3ff552da52695e1 authored almost 5 years ago by Leif Eriksen <[email protected]>
* chore(package): update eslint-plugin-node to version 11.0.0
* chore(package): update lockfi...
e7112e94c86de4a1694b3137763cbe05331f1159 authored almost 5 years ago by greenkeeper[bot] <23040076+greenkeeper[bot]@users.noreply.github.com>
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.5.3.
- [Release note...
While I'm a big fan of Chai for expressive tests, it's basically
syntactic sugar over assertion...
a22e7ad36d9a771f29574edf87ac1f21cfb99205 authored about 5 years ago by Matt R. Wilson <[email protected]>
8f6fcf65184a2815abb62587818dc7a1078c77e0 authored about 5 years ago by Paul Melnikow <[email protected]>
Replace with a test in the spirit of the original test, as the original behavior under test was ...
d70aeb13ce48e28d690e0944fb930c475b0247e1 authored about 5 years ago by Paul Melnikow <[email protected]>8114c5334748c550868b339e1db2aaa8f3f811a8 authored about 5 years ago by Paul Melnikow <[email protected]>
222d43c7cc30b853a693d8a365e98e2d5a3eca8f authored about 5 years ago by Paul Melnikow <[email protected]>
970f7b822945ddc2502ee293b08ce189eaa7125a authored about 5 years ago by Matt R. Wilson <[email protected]>
Ref #1777
These were added in #399 #822.
The `reqheaders` test was needed to hit 100% cove...
524476eb429d03aea470081666b71a7d07b3faa2 authored about 5 years ago by Paul Melnikow <[email protected]>
- Rewrite some mikealRequest tests using got
- Use some chai where things are changing anyway
...
5a4c27c03efd98eb07a73baf1cfe57df6c82c4b4 authored about 5 years ago by Paul Melnikow <[email protected]>
78184d861f16187c2cb796215f8db1e7a1febf6f authored about 5 years ago by Paul Melnikow <[email protected]>
cbde3a9460cfc95cd143a77e43d8b96878d5c8ed authored about 5 years ago by Paul Melnikow <[email protected]>
This renames `Interceptor.matchAddress` to `Interceptor.matchOrigin` which I think better fits w...
3fbc69d74f6d23b33c2c6b144aa9fbf1d855cd18 authored about 5 years ago by Paul Melnikow <[email protected]>e01a67de52c236926830c357d144f03e3bbe5ef6 authored about 5 years ago by Paul Melnikow <[email protected]>
currentMode exists but isn't typed - https://github.com/nock/nock/blob/master/lib/back.js#L282
...
e1597adfc3a813e998db1fd5e0157276b4cb4cd4 authored about 5 years ago by Paul Melnikow <[email protected]>
23145c1ededff548c4fd84381766f8b24d024846 authored about 5 years ago by Paul Melnikow <[email protected]>
I noticed a handful of the tests would fail when I ran them in Mocha locally (though not in Tap)...
a06279ed9ef2f5910df889286ca0f799f8d930e4 authored about 5 years ago by Paul Melnikow <[email protected]>I rewrote most of the test titles, and removed one set of assertions that seemed to duplicate an...
6316d74ae15b54cd5c8a0e9839001f0d6a4174bc authored about 5 years ago by Paul Melnikow <[email protected]>3f74df0bf22986bcac305b285f7bf802cc0a3100 authored about 5 years ago by Paul Melnikow <[email protected]>
I've grouped these by how `query()` is invoked.
ebfe612a88c4e560e07b8ff05013c5b4c27ebd53 authored about 5 years ago by Paul Melnikow <[email protected]>f9cbcd9ba8322c0be87b47d1e0b62acb72722c86 authored about 5 years ago by Paul Melnikow <[email protected]>
cc6f74cd8290883b92eb6f570992c5cfe98a3d43 authored about 5 years ago by Paul Melnikow <[email protected]>
6aa42aaebe99d6d8c550838c2295bf1e23e5ead5 authored about 5 years ago by Paul Melnikow <[email protected]>
dc2cc2c701d354d5bcbf9c6aaa92f766eaf26606 authored about 5 years ago by Paul Melnikow <[email protected]>
* Test the missing behavior to restore 100% coverage
Ref #1776
ca29b6ae5a94a96b816b1e68f4da6039c90208ea authored about 5 years ago by Paul Melnikow <[email protected]>0c5c806085cf36c1fc31e27dd63ee791434fbfe3 authored about 5 years ago by Paul Melnikow <[email protected]>
These came in on #180. If you look at the tree after this was merged https://github.com/nock/noc...
4f7082504346f4582ace709d7f88bf0da929758b authored about 5 years ago by Paul Melnikow <[email protected]>This test came in on 3e2372689533e6c54e0a16717488459264c20755 to fix #120. I've replaced it wit...
1a60bd032afa0fec99f9fabd17f0605db01a6ed7 authored about 5 years ago by Paul Melnikow <[email protected]>98390d2a32916ce11f6a408fcce4a0ae46f30be3 authored about 5 years ago by Paul Melnikow <[email protected]>
Ref #1776
42c2a845381190ca597993c4da276bc3a44f4334 authored about 5 years ago by Paul Melnikow <[email protected]>