Skip to content

Commit b692ce4

Browse files
committedMay 30, 2019
added: tests for the timer
1 parent b39f7c0 commit b692ce4

10 files changed

+3149
-71
lines changed
 

‎timer/index.html

+6-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@
1111
<timer></timer>
1212

1313
<!-- riot tags -->
14-
<script src="timer.tag" type="riot"></script>
14+
<script src="timer.riot" type="riot"></script>
1515

1616
<!-- scripts we need -->
1717
<script src="https://cdn.jsdelivr.net/npm/riot/riot+compiler.min.js"></script>
1818

1919
<!-- mount this app -->
20-
<script> riot.mount('timer', { start: 0 }) </script>
20+
<script>
21+
riot.compile().then(() => {
22+
riot.mount('timer', { start: 0 })
23+
})
24+
</script>
2125
</body>
2226

2327
</html>

‎timer/karma.conf.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,12 @@ module.exports = function(config) {
44
frameworks: ['mocha', 'riot'],
55
plugins: [
66
'karma-mocha',
7-
'karma-mocha-reporter',
8-
'karma-phantomjs-launcher',
9-
'karma-riot'
7+
'karma-mocha-reporter'
108
],
119
files: [
1210
'node_modules/expect.js/index.js',
13-
'*.tag',
1411
'test/**/*.js'
1512
],
16-
preprocessors: {
17-
'**/*.tag': ['riot']
18-
},
1913
browsers: ['PhantomJS'],
2014
reporters: ['mocha'],
2115
singleRun: true

0 commit comments

Comments
 (0)