abuse.ch/test/test.ts
2023-07-28 07:33:54 +02:00

17 lines
474 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.start();