wallet-core/test/shared/exports.js
Florian Dold 30b577138d Squashed 'thirdparty/preact/' content from commit b2d90cc
git-subtree-dir: thirdparty/preact
git-subtree-split: b2d90cc116f1d1998f7a7c98dc6986bf4c1841f4
2016-10-04 11:50:26 +02:00

22 lines
769 B
JavaScript

import preact, { h, Component, render, rerender, options } from '../../src/preact';
import { expect } from 'chai';
describe('preact', () => {
it('should be available as a default export', () => {
expect(preact).to.be.an('object');
expect(preact).to.have.property('h', h);
expect(preact).to.have.property('Component', Component);
expect(preact).to.have.property('render', render);
expect(preact).to.have.property('rerender', rerender);
expect(preact).to.have.property('options', options);
});
it('should be available as named exports', () => {
expect(h).to.be.a('function');
expect(Component).to.be.a('function');
expect(render).to.be.a('function');
expect(rerender).to.be.a('function');
expect(options).to.exist.and.be.an('object');
});
});