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");
|
|
|
|
});
|
|
|
|
}
|