Project: Beat Mix

Could I get some help on why I am seeing certain errors in the testing suite for the first function toggleDrum(). The function works as it should however, the testing suite still shows the function as insufficient. Here is what it is showing as the matter:

toggleDrum() function
✓ should exist and be a function
✓ should not alter any arrays when called with missing arguments
✓ should not mutate any arrays with out-of-range index arguments
✓ should not mutate any arrays with negative index arguments
2) should mutate the correct array
3) can toggle true -> false and false -> true
4) toggles a drum in a single array at a time, not all four
5) should only toggle a single drum in a single array

And here is my code:

const createEmptyDrumArray = () => new Array(16).fill(false);
// Drum Arrays
let kicks = createEmptyDrumArray();
let snares = createEmptyDrumArray();
let hiHats = createEmptyDrumArray();
let rideCymbals = createEmptyDrumArray();

//This function should flip the boolean value in the correct array at the specified index.
const toggleDrum = function(pad, beat) {
  const pads = ['kicks', 'snares', 'hiHats', 'rideCymbals'];
  if (!pad === true || !beat === true) {
    return 1;
  }
  if (pads.includes(pad) === false) {
    return 2;
  }
  if (beat < 0 || beat > 16) {
    return 3;
  }
  //let drum = eval(pad);

  switch (pad) {
    case 'kicks':
      if (kicks[beat] === false) {
        kicks[beat] = true;
      } else {
        kicks[beat] = false;
      }
      break;
    case 'snares':
      if (snares[beat] === false) {
        snares[beat] = true;
      } else {
        snares[beat] = false;
      }
      break;
    case 'hiHats':
      if (hiHats[beat] === false) {
        hiHats[beat] = true;
      } else {
        hiHats[beat] = false;
      }
      break;
    case 'rideCymbals':
      if (rideCymbals[beat] === false) {
        rideCymbals[beat] = true;
      } else {
        rideCymbals[beat] = false;
      }
      break;
    default:
      return;
  }
}

console.log(snares); //true
console.log(snares); //false