test place-holder
This commit is contained in:
parent
40969f791e
commit
afd0e21ee8
|
@ -0,0 +1,17 @@
|
||||||
|
import HelloRiot from './hello-riot.riot';
|
||||||
|
import {expect} from 'chai';
|
||||||
|
import {component} from 'riot';
|
||||||
|
|
||||||
|
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');
|
||||||
|
});
|
||||||
|
});
|
Loading…
Reference in New Issue