jasmine-headless-webkit/spec/javascripts/headless_reporter_result_spec.coffee

15 lines
338 B
CoffeeScript
Raw Normal View History

2011-10-26 02:22:29 +00:00
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 ])