Welcome to the Linux Foundation Forum!

CH7-Lab1 found issue

Options

I think there is issue with the brand-service.js responds with JSON data in the following format:{ id: number , name:'string'}
- got(${brandtSrvUrl}/1).json() should return { id: 1 , name:'some name'}
but I got {"id":1}
result run validate.js always

Comments

  • xdxmxc
    xdxmxc Posts: 148
    Options

    the correct data has the shape { id, brand, color } not { id, name }

  • jhonny111s
    Options

    "The brand property of the Boat service output corresponds to the id of the Brand service entities"

    boat = { id, brand, color } // brand is a number and we need to get brand info

Categories

Upcoming Training