You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
281 B

8 years ago
  1. /*
  2. * macros.js: Simple test macros
  3. *
  4. * (C) 2011, Charlie Robbins & the Contributors
  5. * MIT LICENSE
  6. *
  7. */
  8. var assert = require('assert');
  9. var macros = exports;
  10. macros.assertValidResponse = function (err, res) {
  11. assert.isTrue(!err);
  12. assert.equal(res.statusCode, 200);
  13. };