Files
opendata/test/test.ts
Juergen Kunz df677b38fb update
2025-07-08 15:30:13 +00:00

27 lines
677 B
TypeScript

import { expect, tap } from '@git.zone/tstest/tapbundle';
import * as opendata from '../ts/index.js'
import { BusinessRecord } from '../ts/classes.businessrecord.js';
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();
});
tap.start()