fix(domains): Verfuegbarkeit mit vollstaendiger Domain abfragen (gegen AutoDNS-Demo geprueft)

Mit nur dem Namensteil als searchToken liefert /domainstudio data: [].

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-10-08 14:54:19 +02:00
parent e18b3c8e24
commit f24ce735ab
2 changed files with 8 additions and 6 deletions
@@ -315,9 +315,9 @@ describe('checkAvailability', () => {
expect(h.calls[0].url).toBe('https://api.demo.autodns.com/v1/domainstudio');
expect(h.calls[0].init.method).toBe('POST');
expect(JSON.parse(h.calls[0].init.body as string)).toEqual({
searchToken: 'beispiel',
searchToken: 'beispiel.de',
currency: 'EUR',
sources: { initial: { tlds: ['de'], services: ['WHOIS', 'PRICE'] } },
sources: { custom: { domains: ['beispiel.de'], services: ['WHOIS', 'PRICE'] } },
});
expect(result).toMatchObject({
domain: 'beispiel.de',