-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [4.1.1](https://github.com/homebridge-plugins/homebridge-noip/releases/tag/v4.1.1) (2025-01-25) ### What's Changes - Housekeeping and updated dependencies. **Full Changelog**: v4.1.0...v4.1.1
- Loading branch information
1 parent
dbeca82
commit d6eecf2
Showing
12 changed files
with
795 additions
and
392 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import type { API } from 'homebridge' | ||
|
||
import { describe, expect, it, vi } from 'vitest' | ||
|
||
import registerPlatform from './index.js' | ||
import { NoIPPlatform } from './platform.js' | ||
import { PLATFORM_NAME, PLUGIN_NAME } from './settings.js' | ||
|
||
describe('registerPlatform', () => { | ||
it('should register the platform with homebridge', () => { | ||
const api = { | ||
registerPlatform: vi.fn(), | ||
} as unknown as API | ||
|
||
registerPlatform(api) | ||
|
||
expect(api.registerPlatform).toHaveBeenCalledWith(PLUGIN_NAME, PLATFORM_NAME, NoIPPlatform) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { describe, expect, it } from 'vitest' | ||
|
||
import { getmyip_v4, getmyip_v6, ipapi_v4, ipapi_v6, ipify_v4, ipify_v6, ipinfo_v4, ipinfo_v6, myip_v4, myip_v6, noip, PLATFORM_NAME, PLUGIN_NAME } from './settings.js' | ||
|
||
describe('settings', () => { | ||
it('should have correct PLATFORM_NAME', () => { | ||
expect(PLATFORM_NAME).toBe('NoIP') | ||
}) | ||
|
||
it('should have correct PLUGIN_NAME', () => { | ||
expect(PLUGIN_NAME).toBe('@homebridge-plugins/homebridge-noip') | ||
}) | ||
|
||
it('should have correct API URLs', () => { | ||
expect(ipinfo_v4).toBe('https://ipinfo.io/json') | ||
expect(getmyip_v4).toBe('https://ipv4.getmyip.dev') | ||
expect(ipify_v4).toBe('https://api.ipify.org?format=json') | ||
expect(ipapi_v4).toBe('https://ipapi.co/json') | ||
expect(myip_v4).toBe('https://api4.my-ip.io/v2/ip.json') | ||
expect(ipinfo_v6).toBe('https://v6.ipinfo.io/json') | ||
expect(getmyip_v6).toBe('https://ipv6.getmyip.dev') | ||
expect(ipify_v6).toBe('https://api64.ipify.org?format=json') | ||
expect(ipapi_v6).toBe('https://ip6api.co/json') | ||
expect(myip_v6).toBe('https://api6.my-ip.io/v2/ip.txt') | ||
expect(noip).toBe('https://dynupdate.no-ip.com/nic/update') | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters