jasmine-headless-webkit/spec/javascripts/headless_reporter_result_spec.coffee
2011-10-25 22:22:29 -04:00

15 lines
338 B
CoffeeScript

describe 'HeadlessReporterResult', ->
result = null
name = "name"
splitName = "splitName"
message = 'message'
beforeEach ->
result = new HeadlessReporterResult(name, splitName)
describe '#addResult', ->
it 'should add a message', ->
result.addResult(message)
expect(result.results).toEqual([ message ])