/** * Module dependencies. */ var getUri = require('../'); var assert = require('assert'); describe('get-uri', function () { describe('bad input', function () { it('should throw a TypeError when callback function is given', function () { assert.throws(function () { getUri(); }, TypeError); }); it('should return a TypeError when no URI is given', function (done) { getUri(null, function (err) { assert.equal(err.name, 'TypeError'); done(); }); }); }); });
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
data.js | File | 1.32 KB | 0644 |
|
file.js | File | 1.7 KB | 0644 |
|
ftp.js | File | 2.38 KB | 0644 |
|
http.js | File | 1.86 KB | 0644 |
|
https.js | File | 2.1 KB | 0644 |
|
redirect.js | File | 2.86 KB | 0644 |
|
server.crt | File | 757 B | 0644 |
|
server.key | File | 891 B | 0644 |
|
test.js | File | 533 B | 0644 |
|