|
|
@ -3,19 +3,6 @@ var types = require('../../../helper/types'); |
|
|
|
module.exports.tests = {}; |
|
|
|
module.exports.tests = {}; |
|
|
|
|
|
|
|
|
|
|
|
module.exports.tests.no_cleaned_types = function(test, common) { |
|
|
|
module.exports.tests.no_cleaned_types = function(test, common) { |
|
|
|
test('no cleaned types', function(t) { |
|
|
|
|
|
|
|
try { |
|
|
|
|
|
|
|
types(); |
|
|
|
|
|
|
|
t.fail('exception should be thrown'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
catch (err) { |
|
|
|
|
|
|
|
t.equal(err.message, 'clean_types should not be null or undefined', 'no input should result in exception'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
finally { |
|
|
|
|
|
|
|
t.end(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test('no cleaned types', function(t) { |
|
|
|
test('no cleaned types', function(t) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
types({}); |
|
|
|
types({}); |
|
|
|