HTTP Request Methods
frisby.get(url)
const frisby = require('frisby');
it ('GET should return a status of 200 OK', function () {
return frisby
.get('http://api.example.com/posts')
.expect('status', 200);
});frisby.post(url, [params])
const frisby = require('frisby');
it ('POST should return a status of 201 Created', function () {
return frisby
.post('http://api.example.com/posts', {
title: 'My New Blog Post',
content: '<p>A cool blog post!</p>'
})
.expect('status', 201);
});frisby.put(url, [params])
frisby.del(url)
frisby.fetch(url, [options])
Last updated