test: follow extracted FIRMS aggregation code

This commit is contained in:
Sameh Khamis committed 2026-09-11 22:01:12 -07:00
1 parent a2d6461b52
commit eadeac6c10
1 file changed
+1 -1
+1 -1
View File
@@ -3,7 +3,7 @@ import fs from 'node:fs';
import test from 'node:test';
import { filterTrailing24h, parseFirmsCsv } from './firmsCsv.js';
const config = fs.readFileSync(new URL('../../server/providers/local.js', import.meta.url), 'utf8');
const config = fs.readFileSync(new URL('../../server/providers/firms.js', import.meta.url), 'utf8');
const start = config.indexOf(' async function refreshUpstream(key) {');
assert.notEqual(start, -1, 'FIRMS refresh function exists');
const end = config.indexOf('\n }', start);