     msg = {x: 1, y: 2}
     waitsForPromise ->
       echo(msg).then (response) ->
-        expect(msg).toBe(msg)
+        expect(response).toEqual(msg)
 
     waitsForPromise ->
       evalsimple("2+2").then (result) ->

    waitsForPromise ->
      atom.packages.activatePackage 'julia-client'

describe "basic client interaction", ->
  it "recognises the client's state before boot", ->
    expect(juno.connection.client.isConnected()).toBeFalsy()
    expect(juno.connection.client.isActive()).toBeFalsy()

  bootPromise = null
  it "initiates the boot", ->
    bootPromise = juno.connection.boot()

  it "recognises the client's state during boot", ->
    expect(juno.connection.client.isConnected()).toBe(false)
    expect(juno.connection.client.isActive()).toBe(true)

  it "waits for the boot to complete", ->
    waitsForPromise ->

        expect(pong).toBe('pong')

  it "recognises the client's state after boot", ->
    expect(clientStatus()).toEqual [true, true, false]

  {echo, evalsimple} = juno.connection.client.import ['echo', 'evalsimple']

