Skip to content
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

refactor(test): use Mocha DSL for allow unmocked #1894

Merged
merged 2 commits into from Feb 11, 2020

Conversation

mastermatt
Copy link
Member

@mastermatt mastermatt commented Feb 10, 2020

For: #1305

Because of the indention changes, reviewing this PR without whitespace is much easier:
https://github.com/nock/nock/pull/1894/files?w=1

@mastermatt mastermatt mentioned this pull request Feb 10, 2020
Copy link
Member

@paulmelnikow paulmelnikow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

tests/test_allow_unmocked.js Outdated Show resolved Hide resolved
tests/test_allow_unmocked.js Outdated Show resolved Hide resolved
@mastermatt mastermatt merged commit 1fae725 into nock:master Feb 11, 2020
@mastermatt mastermatt deleted the mocha-allow-unmocked branch February 11, 2020 03:27
paulmelnikow pushed a commit that referenced this pull request Feb 11, 2020
* refactor(test): use Mocha DSL for allow unmocked
paulmelnikow added a commit that referenced this pull request Feb 11, 2020
…1825)

* chore(package): update got to version 10.0.0

* chore(package): update lockfile package-lock.json

* Bump got again and run npm install

* query -> searchParams

* encoding -> responseType

* `{body: …}` no longer implies `.post()`

* auth -> username + password

* query -> searchParams

* Error now has a `response` property

* Couple other fixes

* Restore 100% coverage

* Update lockfile

* refactor(test): use Mocha DSL for allow unmocked (#1894)

* refactor(test): use Mocha DSL for allow unmocked

* Fix format

* baseUrl -> prefixUrl

* Update json’s for breaking changes

* update usage of prefixUrl.

There was a subtle, and I think unnecessary, change in Got 10.x where
using `prefixUrl` means the input, when making a request, can no longer
have a leading slash.
The prefix value can optionally have a trailing slash.
https://github.com/sindresorhus/got#prefixurl

Co-authored-by: Paul Melnikow <github@paulmelnikow.com>
Co-authored-by: Matt R. Wilson <github@mattw.co>
@paulmelnikow paulmelnikow mentioned this pull request Feb 12, 2020
mastermatt added a commit to mastermatt/nock that referenced this pull request Feb 12, 2020
…ock#1825)

* chore(package): update got to version 10.0.0

* chore(package): update lockfile package-lock.json

* Bump got again and run npm install

* query -> searchParams

* encoding -> responseType

* `{body: …}` no longer implies `.post()`

* auth -> username + password

* query -> searchParams

* Error now has a `response` property

* Couple other fixes

* Restore 100% coverage

* Update lockfile

* refactor(test): use Mocha DSL for allow unmocked (nock#1894)

* refactor(test): use Mocha DSL for allow unmocked

* Fix format

* baseUrl -> prefixUrl

* Update json’s for breaking changes

* update usage of prefixUrl.

There was a subtle, and I think unnecessary, change in Got 10.x where
using `prefixUrl` means the input, when making a request, can no longer
have a leading slash.
The prefix value can optionally have a trailing slash.
https://github.com/sindresorhus/got#prefixurl

Co-authored-by: Paul Melnikow <github@paulmelnikow.com>
Co-authored-by: Matt R. Wilson <github@mattw.co>
paulmelnikow added a commit that referenced this pull request Feb 13, 2020
…1825)

* chore(package): update got to version 10.0.0

* chore(package): update lockfile package-lock.json

* Bump got again and run npm install

* query -> searchParams

* encoding -> responseType

* `{body: …}` no longer implies `.post()`

* auth -> username + password

* query -> searchParams

* Error now has a `response` property

* Couple other fixes

* Restore 100% coverage

* Update lockfile

* refactor(test): use Mocha DSL for allow unmocked (#1894)

* refactor(test): use Mocha DSL for allow unmocked

* Fix format

* baseUrl -> prefixUrl

* Update json’s for breaking changes

* update usage of prefixUrl.

There was a subtle, and I think unnecessary, change in Got 10.x where
using `prefixUrl` means the input, when making a request, can no longer
have a leading slash.
The prefix value can optionally have a trailing slash.
https://github.com/sindresorhus/got#prefixurl

Co-authored-by: Paul Melnikow <github@paulmelnikow.com>
Co-authored-by: Matt R. Wilson <github@mattw.co>
@github-actions
Copy link

🎉 This PR is included in version 11.9.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

gr2m pushed a commit that referenced this pull request Feb 16, 2020
…1825)

* chore(package): update got to version 10.0.0

* chore(package): update lockfile package-lock.json

* Bump got again and run npm install

* query -> searchParams

* encoding -> responseType

* `{body: …}` no longer implies `.post()`

* auth -> username + password

* query -> searchParams

* Error now has a `response` property

* Couple other fixes

* Restore 100% coverage

* Update lockfile

* refactor(test): use Mocha DSL for allow unmocked (#1894)

* refactor(test): use Mocha DSL for allow unmocked

* Fix format

* baseUrl -> prefixUrl

* Update json’s for breaking changes

* update usage of prefixUrl.

There was a subtle, and I think unnecessary, change in Got 10.x where
using `prefixUrl` means the input, when making a request, can no longer
have a leading slash.
The prefix value can optionally have a trailing slash.
https://github.com/sindresorhus/got#prefixurl

Co-authored-by: Paul Melnikow <github@paulmelnikow.com>
Co-authored-by: Matt R. Wilson <github@mattw.co>
gr2m pushed a commit that referenced this pull request Feb 16, 2020
…1825)

* chore(package): update got to version 10.0.0

* chore(package): update lockfile package-lock.json

* Bump got again and run npm install

* query -> searchParams

* encoding -> responseType

* `{body: …}` no longer implies `.post()`

* auth -> username + password

* query -> searchParams

* Error now has a `response` property

* Couple other fixes

* Restore 100% coverage

* Update lockfile

* refactor(test): use Mocha DSL for allow unmocked (#1894)

* refactor(test): use Mocha DSL for allow unmocked

* Fix format

* baseUrl -> prefixUrl

* Update json’s for breaking changes

* update usage of prefixUrl.

There was a subtle, and I think unnecessary, change in Got 10.x where
using `prefixUrl` means the input, when making a request, can no longer
have a leading slash.
The prefix value can optionally have a trailing slash.
https://github.com/sindresorhus/got#prefixurl

Co-authored-by: Paul Melnikow <github@paulmelnikow.com>
Co-authored-by: Matt R. Wilson <github@mattw.co>
gr2m pushed a commit that referenced this pull request Feb 16, 2020
…1825)

* chore(package): update got to version 10.0.0

* chore(package): update lockfile package-lock.json

* Bump got again and run npm install

* query -> searchParams

* encoding -> responseType

* `{body: …}` no longer implies `.post()`

* auth -> username + password

* query -> searchParams

* Error now has a `response` property

* Couple other fixes

* Restore 100% coverage

* Update lockfile

* refactor(test): use Mocha DSL for allow unmocked (#1894)

* refactor(test): use Mocha DSL for allow unmocked

* Fix format

* baseUrl -> prefixUrl

* Update json’s for breaking changes

* update usage of prefixUrl.

There was a subtle, and I think unnecessary, change in Got 10.x where
using `prefixUrl` means the input, when making a request, can no longer
have a leading slash.
The prefix value can optionally have a trailing slash.
https://github.com/sindresorhus/got#prefixurl

Co-authored-by: Paul Melnikow <github@paulmelnikow.com>
Co-authored-by: Matt R. Wilson <github@mattw.co>
gr2m pushed a commit that referenced this pull request Feb 16, 2020
…1825)

* chore(package): update got to version 10.0.0

* chore(package): update lockfile package-lock.json

* Bump got again and run npm install

* query -> searchParams

* encoding -> responseType

* `{body: …}` no longer implies `.post()`

* auth -> username + password

* query -> searchParams

* Error now has a `response` property

* Couple other fixes

* Restore 100% coverage

* Update lockfile

* refactor(test): use Mocha DSL for allow unmocked (#1894)

* refactor(test): use Mocha DSL for allow unmocked

* Fix format

* baseUrl -> prefixUrl

* Update json’s for breaking changes

* update usage of prefixUrl.

There was a subtle, and I think unnecessary, change in Got 10.x where
using `prefixUrl` means the input, when making a request, can no longer
have a leading slash.
The prefix value can optionally have a trailing slash.
https://github.com/sindresorhus/got#prefixurl

Co-authored-by: Paul Melnikow <github@paulmelnikow.com>
Co-authored-by: Matt R. Wilson <github@mattw.co>
gr2m pushed a commit that referenced this pull request Feb 16, 2020
…1825)

* chore(package): update got to version 10.0.0

* chore(package): update lockfile package-lock.json

* Bump got again and run npm install

* query -> searchParams

* encoding -> responseType

* `{body: …}` no longer implies `.post()`

* auth -> username + password

* query -> searchParams

* Error now has a `response` property

* Couple other fixes

* Restore 100% coverage

* Update lockfile

* refactor(test): use Mocha DSL for allow unmocked (#1894)

* refactor(test): use Mocha DSL for allow unmocked

* Fix format

* baseUrl -> prefixUrl

* Update json’s for breaking changes

* update usage of prefixUrl.

There was a subtle, and I think unnecessary, change in Got 10.x where
using `prefixUrl` means the input, when making a request, can no longer
have a leading slash.
The prefix value can optionally have a trailing slash.
https://github.com/sindresorhus/got#prefixurl

Co-authored-by: Paul Melnikow <github@paulmelnikow.com>
Co-authored-by: Matt R. Wilson <github@mattw.co>
@mastermatt mastermatt added this to the Migrate to Mocha/Chai milestone Feb 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants