Added to Tour: Corpus Statistic Button
Change-Id: I365d8283ba126e922c09c94dc7b5a8dc68043c7d
diff --git a/dev/js/spec/tourSpec.js b/dev/js/spec/tourSpec.js
index f30cc32..18d3b4e 100644
--- a/dev/js/spec/tourSpec.js
+++ b/dev/js/spec/tourSpec.js
@@ -63,6 +63,8 @@
"</ul>" +
"</div>" +
"</div>";
+
+
let template = document.createElement('template');
html = introKorAP.trim(); // Do not return a text node of whitespace as the result
@@ -81,6 +83,16 @@
expect(intrkorap.querySelector('#glimpse')).not.toBeNull();
expect(intrkorap.querySelector('#view-tutorial')).not.toBeNull();
expect(intrkorap.querySelector('#qsubmit')).not.toBeNull();
+ let vc= vcClass.create().fromJson({
+ '@type' : 'koral:doc',
+ 'key' : 'title',
+ 'match': 'match:eq',
+ 'value' : 'TestTour!',
+ 'type' : 'type:string'
+ });
+ var show = document.createElement('div');
+ show.appendChild(vc.element());
+ expect(show.querySelector('.statistic')).not.toBeNull();
});