Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-require-exceptions.js « simple « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6dc12212ae38fcea61f76747662ea15bb89032f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
var common = require('../common');
var assert = require('assert');

// A module with an error in it should throw
assert.throws(function() {
  require(common.fixturesDir + '/throws_error');
});

// Requiring the same module again should throw as well
assert.throws(function() {
  require(common.fixturesDir + '/throws_error');
});