MCPcopy Index your code
hub / github.com/darkreader/darkreader / time.tests.ts

File time.tests.ts

tests/unit/utils/time.tests.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import {isInTimeIntervalLocal, nextTimeInterval, isNightAtLocation, nextTimeChangeAtLocation, parseTime, getDuration, getDurationInMinutes} from '../../../src/utils/time';
2
3test('Time interval', () => {
4 // isInTimeIntervalLocal is time-zone dependent

Callers

nothing calls this directly

Calls 8

isInTimeIntervalLocalFunction · 0.90
nextTimeIntervalFunction · 0.90
parseTimeFunction · 0.90
getDurationFunction · 0.90
getDurationInMinutesFunction · 0.90
isNightAtLocationFunction · 0.90
nextTimeChangeAtLocationFunction · 0.90
utcDateFunction · 0.85

Tested by

no test coverage detected