       , 0   # B
     ]
 
-    cmds = parse lightPacket
+    should.deepEqual parse(lightPacket), [
+      tag: "anonymous"
+    ,
+      deviceType: "light"
+      id: 1
+      cmd:
+        lightType: "rgb"
+        r: 0
+        g: 255
+        b: 0
+    ]
 
-    expexted = [
-        tag: "anonymous"
-      ,
-        deviceType: "light"
-        id: 1
-        cmd:
-          lightType: "rgb"
-          r: 0
-          g: 255
-          b: 0
-      ]
-
-    should.deepEqual cmds, expexted
 
 
 

      , 255 #B
    ]

    cmds = parse lightPacket

    expexted = [
        tag: "epeli"
      ,
        deviceType: "light"
        id: 1
        cmd:
          lightType: "rgb"
          r: 0
          g: 255
          b: 0
      ,
        deviceType: "light"
        id: 2
        cmd:
          lightType: "rgb"
          r: 0
          g: 0
          b: 255
      ]

    should.deepEqual cmds, expexted

      , 255 #B
    ]

    should.deepEqual parse(lightPacket), [
      tag: "anonymous"
    ,
      deviceType: "light"
      id: 1
      cmd:
        lightType: "rgb"
        r: 0
        g: 255
        b: 0
    ,
      deviceType: "light"
      id: 2
      cmd:
        lightType: "rgb"
        r: 0
        g: 0
        b: 255
    ]



  it "can parse three light packets from single udp-packet", ->
