Files
abuse.ch/test/test.ts

26 lines
746 B
TypeScript
Raw Normal View History

import { tap, expect } from '@git.zone/tstest/tapbundle';
2023-07-28 06:00:09 +02:00
import * as abuseCh from '../ts/index.js';
tap.test('should deal with UrlHaus data', async () => {
const urlHaus = new abuseCh.UrlHaus();
const data = await urlHaus.getData();
2023-07-28 07:33:54 +02:00
console.log(data.length);
console.log(data[100]);
2023-07-28 07:31:59 +02:00
});
tap.test('should deal with ThreatFox data', async () => {
2023-07-28 07:31:59 +02:00
const threatFox = new abuseCh.ThreatFox();
const data = await threatFox.getData();
2023-07-28 07:33:54 +02:00
console.log(data.length);
console.log(data[100]);
2023-07-28 06:00:09 +02:00
});
2023-08-01 12:49:59 +02:00
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[100]);
2023-08-01 12:49:59 +02:00
});
export default tap.start();