2011-12-30 15:47:08 +00:00
|
|
|
describe 'jasmine.HeadlessReporter.Tap', ->
|
2011-12-29 23:37:23 +00:00
|
|
|
beforeEach ->
|
2011-12-30 15:47:08 +00:00
|
|
|
@reporter = new jasmine.HeadlessReporter.Tap()
|
2011-12-29 23:37:23 +00:00
|
|
|
|
|
|
|
describe '#reportRunnerResults', ->
|
|
|
|
it 'should write nothing for nothing', ->
|
|
|
|
@reporter.output = []
|
|
|
|
|
|
|
|
@reporter.reportRunnerResults(null)
|
|
|
|
|
|
|
|
expect(@reporter.output[0]).not.toBeDefined()
|
|
|
|
|
|
|
|
it 'should report the length right', ->
|
|
|
|
@reporter.output = [ 'test' ]
|
|
|
|
|
|
|
|
@reporter.reportRunnerResults(null)
|
|
|
|
|
|
|
|
expect(@reporter.output[0]).toEqual('1..1')
|
|
|
|
|