Skip to content

The Complete Node.js Course: Test Driven Development

Introduction

Implementing the Returns

Test Cases

Populating the Database

Testing the Authorization

Testing the Input

Refactoring Tests

Looking Up an Object

Testing if Rental Processed

Testing the Valid Request

Testing the ReturnDate

Testing the RentalFee

Testing the Movie Stock

Testing the Response

Refactoring the Validation Logic

Mongoose Static Methods

Refactoring the Domain Logic