How to see if string includes another

string.find(name, 'test.ts') returns nil if none found