mirror of
https://github.com/hanzo-apps/hanzo.ai.git
synced 2026-10-29 07:20:43 +00:00
The bar is Models, Dev, Platform, Pricing, Docs, Enterprise, Log in, and Get API key. The homepage is seven sections. Launch pages stay in the tree and drop out of the index through lib/launch.ts. /platform forwards to /cloud. Model and repository floors come from the snapshots the build already keeps. Co-authored-by: z <[email protected]>
14 lines
726 B
TypeScript
14 lines
726 B
TypeScript
import { readFileSync } from 'node:fs'
|
|
import { test, expect } from '@playwright/test'
|
|
import { MODEL_COUNT, MODEL_FLOOR, REPO_COUNT, REPO_FLOOR } from '../../lib/counts'
|
|
|
|
/** The constants in lib/counts.ts are the snapshots, not a second opinion. */
|
|
test('model and repository counts are the committed snapshots', () => {
|
|
const served = JSON.parse(readFileSync('lib/data/served.json', 'utf8')) as { served: unknown[] }
|
|
const oss = JSON.parse(readFileSync('lib/data/oss.json', 'utf8')) as { repos: number }
|
|
expect(served.served.length).toBe(MODEL_COUNT)
|
|
expect(Math.floor(MODEL_COUNT / 100) * 100).toBe(MODEL_FLOOR)
|
|
expect(oss.repos).toBe(REPO_COUNT)
|
|
expect(Math.floor(REPO_COUNT / 100) * 100).toBe(REPO_FLOOR)
|
|
})
|