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.

suncron_spec.js 595B

12345678910111213141516171819202122232425
  1. var should = require('should')
  2. var helper = require('node-red-node-test-helper')
  3. var suncron = require('../suncron.js')
  4. var demoFlow = require('./demo.json')
  5. helper.init(require.resolve('node-red'))
  6. describe('suncron Node', function () {
  7. beforeEach(function (done) {
  8. helper.startServer(done)
  9. })
  10. afterEach(function (done) {
  11. helper.unload()
  12. helper.stopServer(done)
  13. })
  14. it('should be loaded', function (done) {
  15. helper.load(suncron, demoFlow, function () {
  16. var n1 = helper.getNode('n1')
  17. n1.should.have.property('name', 'suncron')
  18. done()
  19. })
  20. })
  21. })