15 lines
338 B
CoffeeScript
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 ])
|