diff --git a/test/runtime.html b/test/runtime.html index c923d6d..39b562d 100755 --- a/test/runtime.html +++ b/test/runtime.html @@ -246,11 +246,11 @@

}) describe('Should be able to pass data with tagged union function.', () => { - const Msg4 = union('click') + const {match, click} = union('click') function Component(state, send) { return html`
- +

${state}

` @@ -261,7 +261,7 @@

return 'no message' }, update(state, msg) { - return Msg4.match(msg, { + return match(msg, { 'click': message => { taggedEffectFired = message return state