Skip to content

Commit

Permalink
Adds failing test for coverajeGH-29
Browse files Browse the repository at this point in the history
  • Loading branch information
goatslacker committed Mar 12, 2012
1 parent f43b836 commit b1c4e71
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/unit/exports.js
Expand Up @@ -38,5 +38,14 @@ exports.c = 3;\n\
}
);
});


test('exports and module.exports as not an object', function (done) {
coveraje.cover('module.exports = 12', function (context, inst) {
if (context.module.exports === context.exports) {
done();
}
}, { globals: "node", quiet: true });
});
});
}());

0 comments on commit b1c4e71

Please sign in to comment.