MithrilJS / mithril.js

A JavaScript Framework for Building Brilliant Applications
https://mithril.js.org
MIT License
13.99k stars 926 forks source link

Ospec test example does not work #1530

Closed dontwork closed 7 years ago

dontwork commented 7 years ago

Description:

The first ospec test example here https://github.com/lhorie/mithril.js/blob/rewrite/docs/testing.md does not seem to work

Steps to Reproduce:

try running that test locally. I have tried some other tests from the ospec.md file and they work

Expected:

thought it would run a test

Actual:

said 0 assertions completed

dontwork commented 7 years ago

It looks like the first o needs to be o.spec

pygy commented 7 years ago

I think o('math' should read o.spec('math.

Edit: Yep, I had missed your update.

tivac commented 7 years ago

Thanks!