this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

addded tests to workflow

akshat 6d7baaa1 44308f7e

+13
+3
.github/workflows/main.yml
··· 26 26 27 27 - name: start 28 28 run: npm run start 29 + 30 + - name: Run Tests 31 + run: npm run test
+10
test/usage.ts
··· 11 11 } 12 12 13 13 async function runTests() { 14 + try { 14 15 const testEmails = await loadTestEmails(filePath); 15 16 16 17 for (const email of testEmails) { 17 18 const isDisposable = await disposableEmailDetector(email); 18 19 console.log(email, '- Disposable:', isDisposable); 19 20 } 21 + console.log('Test passed.'); 22 + } 23 + catch (error: any) { 24 + console.error('Unexpected error:', error); 25 + console.error('Please check the file path and try again.'); 26 + console.error('Test failed.'); 27 + } 28 + 29 + 20 30 } 21 31 22 32 runTests();