bitmessage-js/tests/index.js

18 lines
446 B
JavaScript
Raw Normal View History

2015-02-02 15:30:05 +00:00
var testMode = (global.__env__ || process.env).TEST_MODE;
if (testMode !== "functional") {
describe("Unit tests", function() {
require("./unit");
});
}
if (testMode !== "unit") {
2015-02-05 18:38:36 +00:00
// For Browser tests nodes are being run from karma.conf.js because we
2015-02-02 15:30:05 +00:00
// are _already_ in browser context here.
if (!process.browser) require("./run-test-nodes.js")();
describe("Functional tests", function() {
require("./functional");
});
}