(source, startMarker, endMarker)
| 7 | } |
| 8 | |
| 9 | function 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 | |
| 19 | describe('options page UX policy', () => { |
| 20 | it('does not expose fake hot or newest sorting without real data', () => { |
no outgoing calls
no test coverage detected