'use strict';
/* global describe, it */
let assert = require('assert');
let Cycle = require('../../src/cycle');

describe('Cycle', function () {
  describe('API', function () {
    it('should have `applyToDOM`', function () {
      assert.strictEqual(typeof Cycle.applyToDOM, 'function');
    });

    it('should have `renderAsHTML`', function () {
      assert.strictEqual(typeof Cycle.renderAsHTML, 'function');
    });

    it('should have `registerCustomElement`', function () {
      assert.strictEqual(typeof Cycle.registerCustomElement, 'function');
    });

    it('should have a shortcut to Rx', function () {
      assert.strictEqual(typeof Cycle.Rx, 'object');
    });

    it('should have a shortcut to virtual-hyperscript', function () {
      assert.strictEqual(typeof Cycle.h, 'function');
    });
  });
});

'use strict';
/* global describe, it */
let assert = require('assert');
let Cycle = require('../../src/cycle');

describe('Cycle', function () {
  describe('API', function () {
    it('should have `applyToDOM`', function () {
      assert.strictEqual(typeof Cycle.applyToDOM, 'function');
    });

    it('should have `renderAsHTML`', function () {
      assert.strictEqual(typeof Cycle.renderAsHTML, 'function');
    });

    it('should have `registerCustomElement`', function () {
      assert.strictEqual(typeof Cycle.registerCustomElement, 'function');
    });

    it('should have a shortcut to Rx', function () {
      assert.strictEqual(typeof Cycle.Rx, 'object');
    });

    it('should have a shortcut to virtual-hyperscript', function () {
      assert.strictEqual(typeof Cycle.h, 'function');
    });

    it('should have a shortcut to virtual-dom\'s svg', function () {
      assert.strictEqual(typeof Cycle.svg, 'function');
    });
  });
});

Add test case for svg() (like h() is)