Skip to content

Instantly share code, notes, and snippets.

describe("getTweets - Server", function () {
var server, fakeData = [ /* ... */ ];
before(function () {
// Doesn’t work :( It’s JSONP!
server = sinon.fakeServer.create();
server.respondWith(
"GET",
"https://api.twitter.com/.../elijahmanor.json?count=5",
[200, { "Content-Type": "application/json" }, JSON.stringify(fakeData)]
@oreynaldocl
oreynaldocl / cloudSettings
Last active March 29, 2021 22:31
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-08-02T04:38:40.756Z","extensionVersion":"v3.4.3"}