Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- make runtest 2014-04-23 15:33:23 asaeed ttys010
- /usr/local/bin/istanbul cover /usr/local/bin/_mocha -- -R spec
- logFactory
- ✓ should return an object
- ✓ should throw with bad level
- ✓ should suppress trace by default
- ✓ should suppress debug by default
- ✓ should suppress all with none
- ✓ should display padded level
- ✓ should display filename
- ✓ should display data
- initialization
- ✓ should return a pollerFactory function
- pollerFactory
- ✓ should throw if no options object
- ✓ should throw if no event name is passed
- ✓ should throw if no pollInterval is passed
- ✓ should throw if no pollFunction function is passed
- ✓ should return an object
- poller
- poll
- ✓ should call poll function
- ✓ should emit and log error from pollFunction
- ✓ should emit initial data event, even if no data
- ✓ should emit data
- ✓ should call callback with err/data
- ✓ should not emit the same simple data twice
- ✓ should not emit the same complex data twice
- ✓ should emit changed data
- ✓ should emit multiple changes
- ✓ should emit for new items
- ✓ should emit for deletes
- polling
- ✓ startPolling should initiate a poll
- ✓ polling should run every pollInterval
- 1) stopPolling should stop Polling
- ✓ multiple starts, should not create multiple loops
- 2) quick stop/starts should not create multiple loops
- ✓ multiple stops should not blow up
- validateOptions
- ✓ should throw if no function name
- ✓ should throw if no spec object
- ✓ should throw validationSpec not an object
- ✓ should throw if bad spec object
- ✓ should throw if bad options object
- ✓ should not throw if no options, but defaults for all exist
- ✓ should throw if no options, but defaults for all do not exist
- ✓ should throw if bad defaults object
- ✓ should throw if options missing required number
- ✓ should throw if options missing required string
- ✓ should throw if options missing required object
- ✓ should throw if options missing required function
- ✓ should throw if options do not match string spec
- ✓ should not throw if options match string spec
- ✓ should throw if options do not match number spec
- ✓ should not throw if options match number spec
- ✓ should throw if options do not match object spec
- ✓ should not throw if options match object spec
- ✓ should throw if options do not match function spec
- ✓ should not throw if options match function spec
- ✓ should throw if options do not match custom object
- ✓ should not throw if options contains custom object
- ✓ should add defaults if option does not exist
- ✓ should not overide option with default if option has the wrong type
- 53 passing (110ms)
- 2 failing
- 1) poller polling stopPolling should stop Polling:
- AssertionError: expected stub to have been called exactly once, but it was called 5 times
- stub(function () {})
- stub(function () {})
- stub(function () {})
- stub(function () {})
- stub(function () {})
- 2) poller polling quick stop/starts should not create multiple loops:
- AssertionError: expected 6 to equal 4
- + expected - actual
- +4
- -6
- at Context.<anonymous> (/Users/asaeed/Development/repo/3.0/ui/modules/utils/test/poller.mocha.js:376:44)
- at callFn (/usr/local/lib/node_modules/mocha/lib/runnable.js:223:21)
- at Test.Runnable.run (/usr/local/lib/node_modules/mocha/lib/runnable.js:216:7)
- at Runner.runTest (/usr/local/lib/node_modules/mocha/lib/runner.js:374:10)
- at /usr/local/lib/node_modules/mocha/lib/runner.js:452:12
- at next (/usr/local/lib/node_modules/mocha/lib/runner.js:299:14)
- at /usr/local/lib/node_modules/mocha/lib/runner.js:309:7
- at next (/usr/local/lib/node_modules/mocha/lib/runner.js:247:23)
- at Object._onImmediate (/usr/local/lib/node_modules/mocha/lib/runner.js:276:5)
- at processImmediate [as _immediateCallback] (timers.js:330:15)
- =============================================================================
- Writing coverage object [/Users/asaeed/Development/repo/3.0/ui/modules/utils/coverage/coverage.json]
- Writing coverage reports at [/Users/asaeed/Development/repo/3.0/ui/modules/utils/coverage]
- =============================================================================
- =============================== Coverage summary ===============================
- Statements : 100% ( 131/131 )
- Branches : 100% ( 44/44 ), 1 ignored
- Functions : 100% ( 20/20 )
- Lines : 100% ( 131/131 )
- ================================================================================
- make: *** [runtest] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement