mirror of
https://github.com/BreizhHardware/express-prom-bundle.git
synced 2026-01-18 16:27:28 +01:00
Combined bypass and bypassOnFinish into one option
This commit is contained in:
@@ -243,7 +243,9 @@ describe('index', () => {
|
||||
it('bypass requests, checking res', done => {
|
||||
const app = express();
|
||||
const instance = bundle({
|
||||
bypassOnFinish: (req, res) => res.statusCode === 404,
|
||||
bypass: {
|
||||
onFinish: (req, res) => res.statusCode === 404
|
||||
}
|
||||
});
|
||||
app.use(instance);
|
||||
app.use('/200', (req, res) => res.send(''));
|
||||
|
||||
Reference in New Issue
Block a user