(n database.Note, b database.Book, u database.User)
| 33 | ) |
| 34 | |
| 35 | func getExpectedNotePayload(n database.Note, b database.Book, u database.User) presenters.Note { |
| 36 | return presenters.Note{ |
| 37 | UUID: n.UUID, |
| 38 | CreatedAt: truncateMicro(n.CreatedAt), |
| 39 | UpdatedAt: truncateMicro(n.UpdatedAt), |
| 40 | Body: n.Body, |
| 41 | AddedOn: n.AddedOn, |
| 42 | USN: n.USN, |
| 43 | Book: presenters.NoteBook{ |
| 44 | UUID: b.UUID, |
| 45 | Label: b.Label, |
| 46 | }, |
| 47 | User: presenters.NoteUser{ |
| 48 | UUID: u.UUID, |
| 49 | }, |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | func TestGetNotes(t *testing.T) { |
| 54 | db := testutils.InitMemoryDB(t) |
no test coverage detected