Add API package
This commit is contained in:
@@ -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();
|
||||
Reference in New Issue
Block a user