diff --git a/pages/hello-riot/hello-riot.spec.js b/pages/hello-riot/hello-riot.spec.js new file mode 100644 index 0000000..175e954 --- /dev/null +++ b/pages/hello-riot/hello-riot.spec.js @@ -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'); + }); +}); \ No newline at end of file