All files / src/scenarios static.ts

100% Statements 5/5
100% Branches 0/0
100% Functions 0/0
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52                  2x                 2x                 2x                 2x                 2x            
import type { HttpScenario } from '@ethercalc/shared/oracle-scenarios';
 
/**
 * Static-asset scenarios — CLAUDE.md §6.1 rows for `/`, `/_start`,
 * `/static/socialcalc.js`, and the icon family. These don't touch
 * Redis, never mutate state, and don't embed timestamps, so they're
 * safe candidates for the first recording batch.
 */
 
export const GET_ROOT: HttpScenario = {
  name: 'static/get-root-index',
  kind: 'http',
  request: {
    method: 'GET',
    path: '/',
  },
};
 
export const GET_START: HttpScenario = {
  name: 'static/get-start',
  kind: 'http',
  request: {
    method: 'GET',
    path: '/_start',
  },
};
 
export const GET_FAVICON: HttpScenario = {
  name: 'static/get-favicon',
  kind: 'http',
  request: {
    method: 'GET',
    path: '/favicon.ico',
  },
};
 
export const GET_SOCIALCALC_JS: HttpScenario = {
  name: 'static/get-socialcalc-js',
  kind: 'http',
  request: {
    method: 'GET',
    path: '/static/socialcalc.js',
  },
};
 
export const STATIC_SCENARIOS: readonly HttpScenario[] = [
  GET_ROOT,
  GET_START,
  GET_FAVICON,
  GET_SOCIALCALC_JS,
];