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

[Docs] Update fake-server usage & descriptions #2365

Merged
merged 2 commits into from May 25, 2021

Conversation

codejedi365
Copy link
Contributor

Purpose (TL;DR) - mandatory

Documentation update to match front page usage in the detailed usage page. The functions described no longer exist but are found through a different path for sinon.fakeServer.

Background & Solution

With the update to support es6 modules, the organization of nise module inside of sinon namespace changed. createFakeServer() no longer exists but rather fakeServer is a property of an imported/required module sinon with a singular create() method.

This is updated on the main page of https://sinonjs.org but not in the detailed API page docs/release-source/release/fake-xhr-and-server.md.

Added additional clarity and important information for usage of parameters. Removed duplication of property descriptions to increase readability.

How to verify - mandatory

  1. Check out this branch
  2. Review functions at https://github.com/sinonjs/nise/blob/master/lib/fake-server/index.js & the fakeServer section of https://sinonjs.org
  3. Match validity of statements within documentation updates.

codejedi365 and others added 2 commits May 2, 2021 16:41
With the update to support es6 modules, the organization of `nise` module inside of sinon namespace changed.  `createFakeServer()` no longer exists but rather `fakeServer` is a property of an imported/required module `sinon` with a singular `create()` method.

This is updated on the main page of https://sinonjs.org but not in the detailed API page here.  

Added additional clarity and important information for usage of parameters.  Removed duplication of property descriptions to increase readability.
@fatso83
Copy link
Contributor

fatso83 commented May 25, 2021

Thank you! Docs are our weakest points and a constant source of guilt 😅

@fatso83 fatso83 merged commit 64b96d7 into sinonjs:master May 25, 2021
@codejedi365 codejedi365 deleted the codejedi365-fakeServer-docs-patch branch May 25, 2021 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants