Initial commit

This commit is contained in:
ponzischeme89
2026-05-02 08:26:18 +12:00
commit b7ea05f150
119 changed files with 13641 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import { describe, expect, it } from 'vitest';
import { GET } from './+server';
describe('robots endpoint', () => {
it('returns the crawl policy and sitemap location', async () => {
const response = GET();
const body = await response.text();
expect(response.headers.get('content-type')).toBe('text/plain; charset=utf-8');
expect(body).toContain('User-agent: *');
expect(body).toContain('Allow: /');
expect(body).toContain('Sitemap: https://www.goodwalk.co.nz/sitemap.xml');
});
});