UNPKG

botpress

Version:

The world's first CMS for bots. Easily create, manage and extend chatbots.

27 lines (21 loc) 660 B
/* eslint-env babel-eslint, node, mocha */ import { expect } from 'chai' import View from '../src/views/index' describe('placeholder test of view', () => { let view before(() => { view = new View() }) it('.render is a function', () => { expect(typeof view.render).to.equal('function') }) it('.render() returns an object', () => { const element = view.render() expect(typeof element).to.equal('object') }) it('.render() returns <h4>This module is empty...</h4>', () => { const element = view.render() expect(element.type).to.equal('h4') expect(element.props.children).to.equal('This module is empty...') }) })