Skip to main content

All Questions

3 votes
1 answer
114 views

Correct way to unit-test express API

I wrote an express API for a document management service (repo to be found here) and even though I understand the importance of unit-testing I never quite managed to wrap my head around how I would ...
Felix Wieland's user avatar
2 votes
2 answers
1k views

RESTful CRUD application API Unit Tests

So I am trying to learn TDD/BDD with Javascript. I am creating a simple RESTful web app that uses GET, POST, PUT, and DELETE API calls to update data in a MongoDB database, and wanted to see if there ...
GoldenOats's user avatar
6 votes
1 answer
175 views

Support static typing / analysis with dependency injection

I am working on creating a test library, and I found DI to be pretty convenient, maybe even to create more functional coding patterns. Normally we can have an awkward before-hook setup in Node.js ...
Alexander Mills's user avatar
13 votes
1 answer
259 views

Generate a URL, shorten it, insert it in a tex file and compile those tex files

I have written a NodeJS module and its tests to generate a URL, shorten it with Bitly, insert the short link in a tex file, compile these tex files to PDF and then merge them into one. The code is ...
springloaded's user avatar
15 votes
2 answers
5k views

Test mongoose model

I have mongoose model: ...
Naor's user avatar
  • 505