opendata/test/test.ts

27 lines
685 B
TypeScript
Raw Permalink Normal View History

2023-11-14 16:15:11 +01:00
import { expect, expectAsync, tap } from '@push.rocks/tapbundle';
import * as opendata from '../ts/index.js'
import { BusinessRecord } from '../ts/classes.businessrecord.js';
2023-11-14 16:15:11 +01:00
let testOpenDataInstance: opendata.OpenData;
tap.test('first test', async () => {
testOpenDataInstance = new opendata.OpenData();
expect(testOpenDataInstance).toBeInstanceOf(opendata.OpenData);
});
tap.test('should start the instance', async () => {
await testOpenDataInstance.start();
})
tap.test('should build initial data', async () => {
await testOpenDataInstance.buildInitialDb();
});
tap.test('should stop the instance', async () => {
await testOpenDataInstance.stop();
});
2023-11-14 16:15:11 +01:00
tap.start()