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

Buffer(...) is deprecated #88

Open
mvaneerde opened this issue Nov 10, 2020 · 0 comments
Open

Buffer(...) is deprecated #88

mvaneerde opened this issue Nov 10, 2020 · 0 comments

Comments

@mvaneerde
Copy link

node --trace-deprecation node_modules\jest-cli\bin\jest server/tests/get-tweets.test.js
Expected results: should pass cleanly
Actual results: passes but points out that Buffer(...) is deprecated

(node:2820) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
at showFlaggedDeprecation (buffer.js:194:11)
at new Buffer (buffer.js:281:3)
at getTweets ($REPO_ROOT\server\get-tweets.js:9:23)
at Object. ($REPO_ROOT\server\tests\get-tweets.test.js:9:5)
at $REPO_ROOT\node_modules\jest-jasmine2\build\queueRunner.js:43:12
at new Promise ()
at mapper ($REPO_ROOT\node_modules\jest-jasmine2\build\queueRunner.js:26:19)
at $REPO_ROOT\node_modules\jest-jasmine2\build\queueRunner.js:73:41
at processTicksAndRejections (internal/process/task_queues.js:93:5)
PASS server/tests/get-tweets.test.js

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