MCPcopy Create free account
hub / github.com/zxlie/FeHelper / sourceBetween

Function sourceBetween

test/options-page-ux.test.js:9–17  ·  view source on GitHub ↗
(source, startMarker, endMarker)

Source from the content-addressed store, hash-verified

7}
8
9function sourceBetween(source, startMarker, endMarker) {
10 const start = source.indexOf(startMarker);
11 const end = source.indexOf(endMarker, start);
12
13 expect(start).toBeGreaterThan(-1);
14 expect(end).toBeGreaterThan(start);
15
16 return source.slice(start, end);
17}
18
19describe('options page UX policy', () => {
20 it('does not expose fake hot or newest sorting without real data', () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected