2022-07-18 03:51:24 +00:00
|
|
|
import {component} from 'riot';
|
2022-07-29 04:14:19 +00:00
|
|
|
import {expect} from 'chai';
|
|
|
|
import HelloRiot from './hello-riot.riot';
|
2022-07-18 03:51:24 +00:00
|
|
|
|
|
|
|
describe('Hello Riot Page Unit Test', () => {
|
|
|
|
const mount = component(HelloRiot);
|
|
|
|
|
|
|
|
it('The component properties are properly rendered', () => {
|
|
|
|
const div = document.createElement('div')
|
|
|
|
|
|
|
|
const component = mount(div, {
|
|
|
|
version: 'v6.1.2'
|
|
|
|
});
|
|
|
|
|
|
|
|
expect(component.$('p').innerHTML).to.be.equal('v6.1.2');
|
|
|
|
});
|
|
|
|
});
|