Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Better require.async tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Herbert Vojcik authored and ry committed Apr 7, 2010
1 parent 067f408 commit d36bb65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions test/fixtures/a1.js
6 changes: 5 additions & 1 deletion test/simple/test-module-loading.js
Expand Up @@ -58,9 +58,11 @@ try {

assert.equal(require('path').dirname(__filename), __dirname);

require.async('../fixtures/a', function (err, a) {
var asyncRun = false;
require.async('../fixtures/a1', function (err, a) {
if (err) throw err;
assert.equal("A", a.A());
asyncRun = true;
});

debug('load custom file types with registerExtension');
Expand Down Expand Up @@ -99,5 +101,7 @@ process.addListener("exit", function () {

assert.equal(true, errorThrown);

assert.equal(true, asyncRun);

puts("exit");
});

0 comments on commit d36bb65

Please sign in to comment.