mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fixup all the tests
This commit is contained in:
@@ -14,9 +14,13 @@
|
||||
* limitations under the License.
|
||||
**/
|
||||
|
||||
describe("util/i18n", function() {
|
||||
it('can be required without errors', function() {
|
||||
require("../../../red/util/i18n");
|
||||
});
|
||||
|
||||
|
||||
var NR_TEST_UTILS = require("nr-test-utils");
|
||||
|
||||
var i18n = NR_TEST_UTILS.require("@node-red/util").i18n;
|
||||
|
||||
|
||||
describe("@node-red/util/i18n", function() {
|
||||
it.skip('more tests needed', function(){})
|
||||
});
|
||||
|
@@ -14,6 +14,6 @@
|
||||
* limitations under the License.
|
||||
**/
|
||||
|
||||
describe("util", function() {
|
||||
describe("@node-red/util", function() {
|
||||
it.skip('more tests needed', function(){})
|
||||
});
|
||||
|
@@ -16,9 +16,13 @@
|
||||
var should = require("should");
|
||||
var sinon = require("sinon");
|
||||
var util = require("util");
|
||||
var log = require("../../../red/util/log");
|
||||
|
||||
describe("util/log", function() {
|
||||
var NR_TEST_UTILS = require("nr-test-utils");
|
||||
|
||||
var log = NR_TEST_UTILS.require("@node-red/util").log;
|
||||
|
||||
|
||||
describe("@node-red/util/log", function() {
|
||||
beforeEach(function () {
|
||||
var spy = sinon.stub(util, 'log', function(arg){});
|
||||
var settings = {logging: { console: { level: 'metric', metrics: true } } };
|
||||
|
@@ -14,9 +14,12 @@
|
||||
* limitations under the License.
|
||||
**/
|
||||
var should = require("should");
|
||||
var util = require("../../../red/runtime/util");
|
||||
|
||||
describe("red/util", function() {
|
||||
var NR_TEST_UTILS = require("nr-test-utils");
|
||||
|
||||
var util = NR_TEST_UTILS.require("@node-red/util").util;
|
||||
|
||||
describe("@node-red/util/util", function() {
|
||||
describe('generateId', function() {
|
||||
it('generates an id', function() {
|
||||
var id = util.generateId();
|
||||
|
Reference in New Issue
Block a user