InternetProgramming/Lab3/node_modules/union/test/helpers/macros.js
2023-12-15 14:42:22 +04:00

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);
};