Skip to content

Unit Test in Chapter 04_01 #7

@nschwa

Description

@nschwa

Hey Guys,

I found a little bug concerning the unit test in the Admin-Chapter.
storeBook() in the book_data-Service also needs to store a deep copy of the book-object.

Otherwise the should properly update the book object-scenario will pass, even if the API returns an empty updateBook-function.

In the current state the line book.abstract = 'TEST'; in the unit test references the object in srv._books.

This might be a little confusing.

Thanks for your help.

All the best
Schwaddi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions