mirror of
https://github.com/EchoSixHIYA/WebSpeak-client-for-TeamSpeak.git
synced 2026-12-03 03:52:50 +08:00
fix: correct identity provider test callback
This commit is contained in:
1 parent
7fd1ea96fe
commit
45bec91daa
1 file changed
+3
-1
@@ -4,7 +4,9 @@ import { registerIdentityProviderAdapter, requestIdentityProviderLogin } from ".
|
||||
|
||||
test("identity provider login dispatches stable provider metadata only to a host adapter", async () => {
|
||||
const requests: unknown[] = [];
|
||||
const unregister = registerIdentityProviderAdapter("example.account", (request) => requests.push(request));
|
||||
const unregister = registerIdentityProviderAdapter("example.account", (request) => {
|
||||
requests.push(request);
|
||||
});
|
||||
try {
|
||||
assert.equal(await requestIdentityProviderLogin({ providerId: "unregistered", providerLabel: "Unregistered" }), false);
|
||||
assert.equal(await requestIdentityProviderLogin({ providerId: "example.account", providerLabel: "Example" }), true);
|
||||
|
||||
Reference in new issue
Block a user