mirror of https://github.com/lukechilds/node.git
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.
10 lines
265 B
10 lines
265 B
13 years ago
|
var assert = require('assert');
|
||
|
|
||
|
try {
|
||
|
require('../fixtures/invalid.json');
|
||
|
} catch (err) {
|
||
13 years ago
|
var re = /test[\/\\]fixtures[\/\\]invalid.json: Unexpected string/;
|
||
|
var i = err.message.match(re);
|
||
|
assert(null !== i, 'require() json error should include path');
|
||
|
}
|