18 lines
281 B
JavaScript
18 lines
281 B
JavaScript
/*
|
|
* macros.js: Simple test macros
|
|
*
|
|
* (C) 2011, Charlie Robbins & the Contributors
|
|
* MIT LICENSE
|
|
*
|
|
*/
|
|
|
|
var assert = require('assert');
|
|
|
|
var macros = exports;
|
|
|
|
macros.assertValidResponse = function (err, res) {
|
|
assert.isTrue(!err);
|
|
assert.equal(res.statusCode, 200);
|
|
};
|
|
|