abuse.ch/test/test.ts

24 lines
688 B
TypeScript
Raw Normal View History

2023-07-28 04:00:09 +00:00
import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
import * as abuseCh from '../ts/index.js';
2023-07-28 05:31:59 +00:00
tap.test('should deal with UrlHouse data', async () => {
const urlHouse = new abuseCh.UrlHouse();
const data = await urlHouse.getData();
2023-07-28 05:33:54 +00:00
console.log(data.length);
2023-07-28 05:31:59 +00:00
});
tap.test('should deal with UrlHouse data', async () => {
const threatFox = new abuseCh.ThreatFox();
const data = await threatFox.getData();
2023-07-28 05:33:54 +00:00
console.log(data.length);
2023-07-28 04:00:09 +00:00
});
2023-08-01 10:49:59 +00:00
tap.test('should deal with FeodoTracker data', async () => {
const feodoTracker = new abuseCh.FeodoTracker();
const data = await feodoTracker.getData();
console.log(data.length);
2023-08-01 11:01:48 +00:00
console.log(data[1]);
2023-08-01 10:49:59 +00:00
});
2023-07-28 04:00:09 +00:00
tap.start();