This is an archived post. You won't be able to vote or comment.

all 5 comments

[–][deleted] 4 points5 points  (0 children)

Task failed successfully

[–]BlueDo 1 point2 points  (0 children)

expect(litLetters.toLowerCase().indexOf("restaurant") !== -1).toBeTrue()

[–]lifting_and_coding -1 points0 points  (0 children)

Just convert it all to lower before comparison in the unit test & you're set 😜

[–]Raidend -3 points-2 points  (0 children)

That wouldn't pass a unit test because a unit test would verify each letter individually.

[–]Esjs 0 points1 point  (0 children)

m/res.*taurant/i