Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.92 KB | None | 0 0
  1. make runtest 2014-04-23 15:33:23 asaeed ttys010
  2. /usr/local/bin/istanbul cover /usr/local/bin/_mocha -- -R spec
  3.  
  4.  
  5. logFactory
  6. ✓ should return an object
  7. ✓ should throw with bad level
  8. ✓ should suppress trace by default
  9. ✓ should suppress debug by default
  10. ✓ should suppress all with none
  11. ✓ should display padded level
  12. ✓ should display filename
  13. ✓ should display data
  14.  
  15. initialization
  16. ✓ should return a pollerFactory function
  17.  
  18. pollerFactory
  19. ✓ should throw if no options object
  20. ✓ should throw if no event name is passed
  21. ✓ should throw if no pollInterval is passed
  22. ✓ should throw if no pollFunction function is passed
  23. ✓ should return an object
  24.  
  25. poller
  26. poll
  27. ✓ should call poll function
  28. ✓ should emit and log error from pollFunction
  29. ✓ should emit initial data event, even if no data
  30. ✓ should emit data
  31. ✓ should call callback with err/data
  32. ✓ should not emit the same simple data twice
  33. ✓ should not emit the same complex data twice
  34. ✓ should emit changed data
  35. ✓ should emit multiple changes
  36. ✓ should emit for new items
  37. ✓ should emit for deletes
  38. polling
  39. ✓ startPolling should initiate a poll
  40. ✓ polling should run every pollInterval
  41. 1) stopPolling should stop Polling
  42. ✓ multiple starts, should not create multiple loops
  43. 2) quick stop/starts should not create multiple loops
  44. ✓ multiple stops should not blow up
  45.  
  46. validateOptions
  47. ✓ should throw if no function name
  48. ✓ should throw if no spec object
  49. ✓ should throw validationSpec not an object
  50. ✓ should throw if bad spec object
  51. ✓ should throw if bad options object
  52. ✓ should not throw if no options, but defaults for all exist
  53. ✓ should throw if no options, but defaults for all do not exist
  54. ✓ should throw if bad defaults object
  55. ✓ should throw if options missing required number
  56. ✓ should throw if options missing required string
  57. ✓ should throw if options missing required object
  58. ✓ should throw if options missing required function
  59. ✓ should throw if options do not match string spec
  60. ✓ should not throw if options match string spec
  61. ✓ should throw if options do not match number spec
  62. ✓ should not throw if options match number spec
  63. ✓ should throw if options do not match object spec
  64. ✓ should not throw if options match object spec
  65. ✓ should throw if options do not match function spec
  66. ✓ should not throw if options match function spec
  67. ✓ should throw if options do not match custom object
  68. ✓ should not throw if options contains custom object
  69. ✓ should add defaults if option does not exist
  70. ✓ should not overide option with default if option has the wrong type
  71.  
  72.  
  73. 53 passing (110ms)
  74. 2 failing
  75.  
  76. 1) poller polling stopPolling should stop Polling:
  77. AssertionError: expected stub to have been called exactly once, but it was called 5 times
  78. stub(function () {})
  79. stub(function () {})
  80. stub(function () {})
  81. stub(function () {})
  82. stub(function () {})
  83.  
  84.  
  85. 2) poller polling quick stop/starts should not create multiple loops:
  86.  
  87. AssertionError: expected 6 to equal 4
  88. + expected - actual
  89.  
  90. +4
  91. -6
  92.  
  93. at Context.<anonymous> (/Users/asaeed/Development/repo/3.0/ui/modules/utils/test/poller.mocha.js:376:44)
  94. at callFn (/usr/local/lib/node_modules/mocha/lib/runnable.js:223:21)
  95. at Test.Runnable.run (/usr/local/lib/node_modules/mocha/lib/runnable.js:216:7)
  96. at Runner.runTest (/usr/local/lib/node_modules/mocha/lib/runner.js:374:10)
  97. at /usr/local/lib/node_modules/mocha/lib/runner.js:452:12
  98. at next (/usr/local/lib/node_modules/mocha/lib/runner.js:299:14)
  99. at /usr/local/lib/node_modules/mocha/lib/runner.js:309:7
  100. at next (/usr/local/lib/node_modules/mocha/lib/runner.js:247:23)
  101. at Object._onImmediate (/usr/local/lib/node_modules/mocha/lib/runner.js:276:5)
  102. at processImmediate [as _immediateCallback] (timers.js:330:15)
  103.  
  104.  
  105.  
  106. =============================================================================
  107. Writing coverage object [/Users/asaeed/Development/repo/3.0/ui/modules/utils/coverage/coverage.json]
  108. Writing coverage reports at [/Users/asaeed/Development/repo/3.0/ui/modules/utils/coverage]
  109. =============================================================================
  110.  
  111. =============================== Coverage summary ===============================
  112. Statements : 100% ( 131/131 )
  113. Branches : 100% ( 44/44 ), 1 ignored
  114. Functions : 100% ( 20/20 )
  115. Lines : 100% ( 131/131 )
  116. ================================================================================
  117. make: *** [runtest] Error 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement