Created
August 17, 2018 02:05
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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