Files
npmextra/test/test.appdata.ts

27 lines
482 B
TypeScript
Raw Normal View History

import { expect, tap } from '@git.zone/tstest/tapbundle';
2024-06-19 17:53:10 +02:00
// module to test
import * as npmextra from '../ts/index.js';
interface ITestOptions {
hi: string;
deep: {
deep1: string;
deep2: string;
};
}
let testAppdata: npmextra.AppData<ITestOptions>;
tap.test('should create a valid AppData', async () => {
testAppdata = new npmextra.AppData<ITestOptions>({
envMapping: {
deep: {
deep1: '',
},
},
});
});
export default tap.start();