         exampleName: 'e > f'
     )
     assert.equal(name, 'a > b > c > d > e > f')
+  )
+)

{assert} = require 'chai'

getTransactionName = require '../../../src/transaction-name/get-transaction-name'

describe 'getTransactionName', ->
  it 'is a function', ->
    assert.isFunction getTransactionName

  it 'joins all parts of the origin object', ->
    name = getTransactionName(
      origin:
        apiName: 'a'

        exampleName: 'e'
    )
    assert.equal(name, 'a > b > c > d > e')
  )
  it('joins just the parts of the origin object, which are available', ->
    name = getTransactionName(
      origin:
        apiName: null
