From afd0e21ee8a36b8ab00c9cfc30464563f079faed Mon Sep 17 00:00:00 2001 From: Geoff Doty Date: Sun, 17 Jul 2022 23:51:24 -0400 Subject: [PATCH] test place-holder --- pages/hello-riot/hello-riot.spec.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pages/hello-riot/hello-riot.spec.js 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