Spinal Tap Case test

Tell us what’s happening:
Describe your issue in detail here.
what are my not getting right??

  **Your code so far**

function spinalCase(str) {
return str.replace(/\s+/g, '-').toLowerCase()
}

console.log(spinalCase('This Is Spinal Tap'));
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0

Challenge: Spinal Tap Case

Link to the challenge:

What do the failing tests say?

spinalCase("thisIsSpinalTap") should return the string this-is-spinal-tap .

spinalCase("The_Andy_Griffith_Show") should return the string the-andy-griffith-show
spinalCase("AllThe-small Things") should return the string all-the-small-things .

Your code replaces spaces with -, but those three examples don’t have spaces between words.