r002 / rittr

A Robertlandian take on Twitter...
0 stars 0 forks source link

Create 'users' entity, basic functions, and tests. #6

Open r002 opened 4 years ago

r002 commented 4 years ago

Tasks:

JSON REST API should be:

Also write tests to test each of these functions. Use Node-Tap.


Model:

r002 commented 4 years ago

Today, I added Test 1.1 and Test 1.2:

image

r002 commented 4 years ago

Today, I added three tests: User.001, User.002, User.003. I'm still unclear about the best way of printing/formatting/structuring tests though. Also-- Should User.003 actually be split into three tests? Need to ask/investigate more.

image

r002 commented 4 years ago

All UserService-related error messages are now sourced from:

image

r002 commented 4 years ago

Today's progress:

Implemented: http://localhost:5000/v1/users?uid=1&otp=mock_otp_for_tests_good_until_2021

image

image

image