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

cookieJar.fromJSON is not a function #208

Closed
LouenLeoncoeur opened this issue Dec 21, 2020 · 0 comments
Closed

cookieJar.fromJSON is not a function #208

LouenLeoncoeur opened this issue Dec 21, 2020 · 0 comments

Comments

@LouenLeoncoeur
Copy link

const cookieJar = new tough.CookieJar()
const cookie = new tough.Cookie()
cookie.fromJSON(json)
cookieJar.fromJSON(json)

This simple code outputs this error.
cookie.fromJSON is not a function

I feel stupid but it seems to me that I am doing it according to docs but the cookieJar doesn't have any import json functions

wjhsf pushed a commit that referenced this issue Feb 8, 2024
…utomocks (#234)

fixes #232

This PR reverts #231, #210, and #208. They provided functionality to auto mock apex methods.

**Note:** Test authors will need to keep implementing their own apex (+apexContinuation) methods mocks after this PR is merged.

* Revert "fix: apex automock should return a resolved promise (#231)"

This reverts commit 544f95a.

* Revert "fix: add apex stubs to the transformIgnorePatterns (#210)"

This reverts commit fe8381a.

* Revert "fix: automock apex methods with valid wire adapters (#208)"

This reverts commit 125c689.
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

No branches or pull requests

1 participant