mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
test: follow extracted FIRMS aggregation code
This commit is contained in:
1 parent
a2d6461b52
commit
eadeac6c10
1 file changed
+1
-1
@@ -3,7 +3,7 @@ import fs from 'node:fs';
|
|||||||
import test from 'node:test';
|
import test from 'node:test';
|
||||||
import { filterTrailing24h, parseFirmsCsv } from './firmsCsv.js';
|
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) {');
|
const start = config.indexOf(' async function refreshUpstream(key) {');
|
||||||
assert.notEqual(start, -1, 'FIRMS refresh function exists');
|
assert.notEqual(start, -1, 'FIRMS refresh function exists');
|
||||||
const end = config.indexOf('\n }', start);
|
const end = config.indexOf('\n }', start);
|
||||||
|
|||||||
Reference in new issue
Block a user