UNPKG

siesta-lite

Version:

Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers

14 lines (8 loc) 332 B
StartTest(function(t) { t.requireOk('My.Store.EventStore', function () { var myStore = new My.Store.EventStore({ }) t.is(myStore.someMethod(), 'value', 'Correctly loaded class') t.isFunction(My.Util.SomeClass, 'Correctly loaded dependency') }) })