rebranding
This commit is contained in:
@@ -44,7 +44,7 @@ describe("createApiClient", () => {
|
||||
let client: ReturnType<typeof createApiClient>;
|
||||
|
||||
beforeEach(() => {
|
||||
client = createApiClient("https://api.shieldai.com/api/trpc", "test-key");
|
||||
client = createApiClient("https://api.kordant.ai/api/trpc", "test-key");
|
||||
});
|
||||
|
||||
it("should create a client", () => {
|
||||
|
||||
@@ -10,9 +10,9 @@ describe("checkUrlForPhishing", () => {
|
||||
});
|
||||
|
||||
it("should detect known phishing domains", () => {
|
||||
const result = checkUrlForPhishing("https://shieldai-secure.com/login");
|
||||
const result = checkUrlForPhishing("https://kordant-secure.com/login");
|
||||
expect(result.isPhishing).toBe(true);
|
||||
expect(result.reasons).toContain("Known phishing domain: shieldai-secure.com");
|
||||
expect(result.reasons).toContain("Known phishing domain: kordant-secure.com");
|
||||
});
|
||||
|
||||
it("should detect suspicious URL patterns", () => {
|
||||
@@ -23,7 +23,7 @@ describe("checkUrlForPhishing", () => {
|
||||
|
||||
it("should detect phishing with multiple signals for high confidence", () => {
|
||||
const result = checkUrlForPhishing(
|
||||
"https://shieldai-verify.com/account-update/verify",
|
||||
"https://kordant-verify.com/account-update/verify",
|
||||
);
|
||||
expect(result.isPhishing).toBe(true);
|
||||
expect(result.confidence).toBeGreaterThan(0.5);
|
||||
@@ -37,12 +37,12 @@ describe("checkUrlForPhishing", () => {
|
||||
});
|
||||
|
||||
it("should detect phishing with subdomain of known domain", () => {
|
||||
const result = checkUrlForPhishing("https://login.shieldai-secure.com");
|
||||
const result = checkUrlForPhishing("https://login.kordant-secure.com");
|
||||
expect(result.isPhishing).toBe(true);
|
||||
});
|
||||
|
||||
it("should not flag legitimate shieldai.com URLs", () => {
|
||||
const result = checkUrlForPhishing("https://api.shieldai.com/api/trpc");
|
||||
it("should not flag legitimate kordant.ai URLs", () => {
|
||||
const result = checkUrlForPhishing("https://api.kordant.ai/api/trpc");
|
||||
expect(result.isPhishing).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user