File: test.js

package info (click to toggle)
node-is-redirect 1.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 104 kB
  • sloc: makefile: 2; sh: 2
file content (9 lines) | stat: -rw-r--r-- 165 bytes parent folder | download
1
2
3
4
5
6
7
8
9
'use strict';
var test = require('ava');
var isRedirect = require('./');

test(function (t) {
	t.assert(isRedirect(305));
	t.assert(!isRedirect(405));
	t.end();
});