Skip to content

Commit

Permalink
Rename for spam protection reason
Browse files Browse the repository at this point in the history
  • Loading branch information
jenszech committed Jul 20, 2020
1 parent 57d9b8e commit 01f0372
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ npm install homematic-js-km200-api
AES key generator for the KM200 web gateway: https://ssl-account.com/km200.andreashahn.info/

```javascript
import { Km200 } from 'homematic-js-km200-api';
import { Km200 } from 'km200-api';

const key = '<INSERT YOUR KEY HERE>';
const km200 = new Km200('192.168.10.22', 80, key);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "homematic-js-km200-api",
"name": "km200-api",
"version": "0.2.1",
"description": "A nodejs module for connecting a buderus heater via km200 interface",
"main": "./lib/km200.js",
Expand Down
14 changes: 14 additions & 0 deletions src/__tests__/km200.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { Km200 } from '../km200';

const key = '1234567890123456789012345678901234567890123456789012345678901234'
const km200 = new Km200('1.1.1.1', 80, key);
const get = jest.spyOn(km200, 'get');
beforeEach(() => {
get.mockReset();
});

test('Km200 Api Constructor', () => {
const km200 = new Km200('1.1.1.1', 80, key);
expect(km200.host).toBe('1.1.1.1');
expect(km200.port).toBe(80);
});

0 comments on commit 01f0372

Please sign in to comment.