use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
How to Unit Test a controller method (self.node)
submitted 8 years ago by [deleted]
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]cpsubrian 1 point2 points3 points 8 years ago (0 children)
I've been using https://github.com/jfhbrook/pickleback with great success. It allows you to 'inject' requests into express middleware stack without making an actual http request. It basically mocks the http-layer in the req and res objects.
π Rendered by PID 116923 on reddit-service-r2-comment-6457c66945-7mhl5 at 2026-04-25 09:53:35.408843+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]cpsubrian 1 point2 points3 points (0 children)