Typescript, Jasmine

Hello, i have a small problem with typescript and jasmine can i get small little help

that’s the type

and ther’s my problem here

when the id be a number i got this problem

when the id be a string i got this problem

Error seem to be trying to say there’s no type property in the expected object.

but how can i fix it!? i’m tried to delete id, and get error too

Do you understand what the problem is? Object with which result is checked against does not have all necessary properties from the book type.

1 Like

its Fixed when i add type, i’m really thank you

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.