I have the following function in Jest. I have a method called isAquatic that returns a bool depending on the animal.
const nonAquaticAnimal = ["tiger", "cat", "lion]
test.each(nonAquaticAnimal)(
'.isAquatic',
(input, false) => {
const animal = isAquatic(input)
expect(animal).toBe(false);
},
);
I have an error that says identifier false is a reserved word and cannot be used here
. How can I loop through the array and call this method which returns a boolean?