Add API package

This commit is contained in:
2026-05-05 12:03:46 +00:00
commit af7612c706
8 changed files with 180 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
import { expect, tap } from '@git.zone/tstest/tapbundle';
import { SmarthomeExchangeApiClient } from '../ts/index.js';
tap.test('creates an API client', async () => {
const client = new SmarthomeExchangeApiClient({ hubUrl: 'http://localhost:8080/' });
expect(client).toBeInstanceOf(SmarthomeExchangeApiClient);
});
export default tap.start();