24 lines
688 B
TypeScript
24 lines
688 B
TypeScript
import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
|
|
import * as abuseCh from '../ts/index.js';
|
|
|
|
tap.test('should deal with UrlHouse data', async () => {
|
|
const urlHouse = new abuseCh.UrlHouse();
|
|
const data = await urlHouse.getData();
|
|
console.log(data.length);
|
|
});
|
|
|
|
tap.test('should deal with UrlHouse data', async () => {
|
|
const threatFox = new abuseCh.ThreatFox();
|
|
const data = await threatFox.getData();
|
|
console.log(data.length);
|
|
});
|
|
|
|
tap.test('should deal with FeodoTracker data', async () => {
|
|
const feodoTracker = new abuseCh.FeodoTracker();
|
|
const data = await feodoTracker.getData();
|
|
console.log(data.length);
|
|
console.log(data[1]);
|
|
});
|
|
|
|
tap.start();
|