Skip to content

getTrainersPokemons - Test description does not match expected test results. #14

Description

@ThelsK

The test description says: getTrainersPokemons: replaces trainerIds with the pokemons belonging to a trainer for an array of trainers

However, the test itself checks the pokemon property:

trainersWithPokemons.forEach(trainer => {
expect(trainer).toEqual(expect.objectContaining({
id: expect.any(Number),
name: expect.any(String),
pokemons: expect.any(Array)
}))

trainer.pokemons.forEach(pokemon => {
    expect(pokemon).toEqual(expect.objectContaining({
        id: expect.any(Number),
        name: expect.any(String),
        avg_spawns: expect.any(Number),
    }))
})

})

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