Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011121314151617181920
  1. //const assert=require('assert');
  2. const Logger=require("../logger.js");
  3. const logger=new Logger("test");
  4. // Mocha Test Case
  5. describe('Mocha Test Case', function() {
  6. it('send', function(done) {
  7. logger.send("a label");
  8. done();
  9. });
  10. it('sendDebug', function(done) {
  11. logger.sendDebug("a label",{a:"test"});
  12. // const Logger = require(../loggerNode");
  13. // const Logger = require("node-red-contrib-logger");
  14. // const logger = new Logger("test");
  15. // logger.sendInfo("Copyright 2020 Jaroslav Peter Prib");
  16. // assert.equal(sqrt, 25);
  17. done();
  18. });
  19. });