How To Troubleshoot Collaboration Apps for the Modern Connected Worker
Frisby.js API testing framework
1.
2. What is Frisby.js
Frisby is a REST API testing
framework built on node.js and
Jasmine that makes testing API
endpoints easy, fast, and fun.
Installation
npm install -g jasmine-node
npm install –save-dev frisby
3. The First Toss
Headers
Verb / Endpoint
Expectations
Toss
var frisby = require('frisby');
frisby.create('Github Users')
.addHeader('User-Agent','frisbyJS Test')
.get('https://api.github.com/users/vlucas')
.expectStatus(200)
.expectHeaderContains('Content-Type', 'json')
.expectHeader('Content-Type', 'application/json;
charset=utf-8')
.expectJSON({login: 'vlucas'})
.toss();