Skip to content

Instantly share code, notes, and snippets.

@neverendingqs
Created August 17, 2018 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neverendingqs/ec039ca5efd4cfbbdac854cf78a962ae to your computer and use it in GitHub Desktop.
Save neverendingqs/ec039ca5efd4cfbbdac854cf78a962ae to your computer and use it in GitHub Desktop.
2017/03/13/ensure-all-nock-interceptors-are-used.html - simple-example.js
'use strict';
const request = require('superagent');
const express = require('express');
const app = express();
app.get('/', function(req, res) {
request
.get('https://www.example.com')
.then(response => res.send(response.text));
});
app.listen(3000);
module.exports = app;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment