We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Just tried to use this package, but ran into a problem.
I tried
const Swift = require("swift-mock"); const swift = new Swift();
But it fails with something like
SyntaxError: Unexpected token o in JSON at position 1 at JSON.parse (<anonymous>) at new Swift (/whatever/node_modules/swift-mock/lib/swift.js:19:33)
I had a look in the code. At
swift-mock/lib/swift.js
Line 19 in 9cc7326
JSON.parse is done on patterns. But patterns already is an object and it fails.
Same thing at
swift-mock/lib/swiftParser.js
Line 9 in 9cc7326
After I changed that I could parse my Swift file. I am sitting on
npx node --version v10.15.1
The text was updated successfully, but these errors were encountered:
Fix for it exist here CaptorAB@a70690e
Sorry, something went wrong.
No branches or pull requests
Just tried to use this package, but ran into a problem.
I tried
But it fails with something like
I had a look in the code. At
swift-mock/lib/swift.js
Line 19 in 9cc7326
JSON.parse is done on patterns. But patterns already is an object and it fails.
Same thing at
swift-mock/lib/swiftParser.js
Line 9 in 9cc7326
After I changed that I could parse my Swift file. I am sitting on
The text was updated successfully, but these errors were encountered: