jasmine-headless-webkit/spec/javascripts/jasmine.HeadlessReporter.Tap_spec.coffee
2011-12-30 10:47:08 -05:00

20 lines
496 B
CoffeeScript

describe 'jasmine.HeadlessReporter.Tap', ->
beforeEach ->
@reporter = new jasmine.HeadlessReporter.Tap()
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')