fileNames is an object so a basic for loop would also be awkward. We already had precedent below to iterate over fileNames with for-in and manual increments.
for-of would trigger lint violations and while it's likely a false-positive for tests, I just stuck with what's already there. But I agree that for-in with increments is pretty unorthodox.