bitmessage-js/tests/index.js

18 lines
446 B
JavaScript
Raw Normal View History

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