| 1114 | |
| 1115 | // Grep, and the shell equivalents of Read and Grep. |
| 1116 | const oneShot = (next) => suff([ |
| 1117 | ...req(10000, 'm1', [use('e1', EXPLORE, { query: 'q' })]), |
| 1118 | exploreRes('e1', ['lib/response.js']), |
| 1119 | ...req(12000, 'm2', [next]), |
| 1120 | res(next.id, 100), |
| 1121 | done(), |
| 1122 | ]).calls[0]; |
| 1123 | checkIs('explore → Grep', oneShot(use('g1', 'Grep', { pattern: 'send' })).bucket, 'search'); |
| 1124 | checkIs('explore → Glob', oneShot(use('g1', 'Glob', { pattern: '**/*.js' })).bucket, 'search'); |
| 1125 | checkIs('explore → Bash sed of a returned file', |