fix(core): update

This commit is contained in:
2021-01-03 03:41:46 +00:00
commit 2a8285bd0c
13 changed files with 11503 additions and 0 deletions

16
test/test.ts Normal file
View File

@ -0,0 +1,16 @@
import { expect, tap } from '@pushrocks/tapbundle';
import * as smartrobots from '../ts/index';
let testSmartrobotsInstance: smartrobots.Smartrobots;
tap.test('first test', async () => {
testSmartrobotsInstance = new smartrobots.Smartrobots();
expect(testSmartrobotsInstance).to.be.instanceOf(smartrobots.Smartrobots);
});
tap.test('should parse a robots.txt', async () => {
const result = await testSmartrobotsInstance.parseRobotsTxtFromUrl('https://central.eu/robots.txt');
console.log(result);
})
tap.start();