Move locale files under api/runtime components

This commit is contained in:
Nick O'Leary
2015-11-21 23:12:39 +00:00
parent 88dc202db2
commit d2be7f8c8f
9 changed files with 63 additions and 66 deletions

View File

@@ -22,9 +22,8 @@ var sinon = require('sinon');
var when = require('when');
var nodes = require("../../../red/api/nodes");
var comms = require("../../../red/api/comms");
var locales = require("../../../red/api/locales");
describe("nodes api", function() {
@@ -37,6 +36,7 @@ describe("nodes api", function() {
warn: function(){}
}
nodes.init(runtime);
}
before(function() {
@@ -50,8 +50,11 @@ describe("nodes api", function() {
app.put("/nodes/:mod/:set",nodes.putSet);
app.delete("/nodes/:id",nodes.delete);
sinon.stub(comms,"publish");
sinon.stub(locales,"determineLangFromHeaders", function() {
return "en-US";
});
});
after(function() {
comms.publish.restore();
});