Resolved conflict unit tests between currentweather and newsfeed.

This commit is contained in:
Rodrigo Ramírez Norambuena 2017-08-06 07:53:03 -04:00
parent 7fc82ccead
commit 739fb99ced

View File

@ -7,13 +7,17 @@ var vm = require("vm");
describe("Functions module currentweather", function() { describe("Functions module currentweather", function() {
before(function(){
// Fake for use by currentweather.js
Module = {}; Module = {};
config = {}; config = {};
Module.definitions = {}; Module.definitions = {};
Module.register = function (name, moduleDefinition) { Module.register = function (name, moduleDefinition) {
Module.definitions[name] = moduleDefinition; Module.definitions[name] = moduleDefinition;
}; };
before(function(){
require("../../../modules/default/currentweather/currentweather.js"); require("../../../modules/default/currentweather/currentweather.js");
Module.definitions.currentweather.config = {}; Module.definitions.currentweather.config = {};
}); });