Property Based Testing, Automation Testing, QA, Unit Testing, Integration Testing.
pattern) => text.indexOf(pattern) >= 0; // Properties describe('properties', () => { // string text always contains itself it('should always contain itself', () => { fc.assert( fc.property(fc.string(), (text) => contains(text, text)), { numRuns: 1000 } ); }); }) Additionally, you will need a test