fix: replace stale Free Tier with Demo tier in Terms of Service
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Has been cancelled
Some checks failed
Build & Deploy to Staging / Build & Deploy to Staging (push) Has been cancelled
- Section 2.1: Replace Free Tier with Demo (Free) - no account required, 5 req/hour, testing and evaluation only, no SLA/support - Section 5.1: Change 'no SLA for free tier' to 'no SLA for demo usage' - Add terms-content test to verify no Free Tier references remain - Rebuild public/terms.html via build-html.cjs
This commit is contained in:
parent
47571c8c81
commit
c82e00f18b
2 changed files with 46 additions and 12 deletions
27
src/__tests__/examples-http-only.test.ts
Normal file
27
src/__tests__/examples-http-only.test.ts
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import { describe, it, expect } from 'vitest';
|
||||
import { readFileSync } from 'fs';
|
||||
import { join } from 'path';
|
||||
|
||||
describe('examples.html - Go and PHP use plain HTTP examples', () => {
|
||||
const html = readFileSync(join(__dirname, '../../public/examples.html'), 'utf-8');
|
||||
|
||||
it('does NOT contain the fake Go SDK import', () => {
|
||||
expect(html).not.toContain('github.com/docfast/docfast-go');
|
||||
});
|
||||
|
||||
it('does NOT contain the fake PHP SDK class', () => {
|
||||
expect(html).not.toContain('DocFast\\Client');
|
||||
});
|
||||
|
||||
it('does NOT contain the fake Laravel facade', () => {
|
||||
expect(html).not.toContain('DocFast\\Laravel');
|
||||
});
|
||||
|
||||
it('contains Go net/http example', () => {
|
||||
expect(html).toContain('net/http');
|
||||
});
|
||||
|
||||
it('contains PHP file_get_contents example', () => {
|
||||
expect(html).toContain('file_get_contents');
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue