import SecretHandshake from './secret-handshake';

describe('Secret Handshake', () => {
  it('1 is a wink', () => {
    const handshake = new SecretHandshake(1);
    expect(handshake.commands()).toEqual(['wink']);
  });

  xit('10 is a double blink', () => {
    const handshake = new SecretHandshake(2);
    expect(handshake.commands()).toEqual(['double blink']);
  });

  xit('100 is close your eyes', () => {
    const handshake = new SecretHandshake(4);
    expect(handshake.commands()).toEqual(['close your eyes']);
  });

  xit('1000 is jump', () => {
    const handshake = new SecretHandshake(8);
    expect(handshake.commands()).toEqual(['jump']);
  });

  xit('11 is wink and double blink', () => {
    const handshake = new SecretHandshake(3);
    expect(handshake.commands()).toEqual(['wink','double blink']);
  });

  xit('10011 is double blink and wink', () => {
    const handshake = new SecretHandshake(19);
    expect(handshake.commands()).toEqual(['double blink','wink']);
  });

  xit('11111 is jump, close your eyes, double blink, and wink', () => {
    const handshake = new SecretHandshake(31);
    expect(handshake.commands()).toEqual(['jump','close your eyes','double blink','wink']);
  });

  xit('text is an invalid secret handshake', () => {
    expect( function () {
      const handshake = new SecretHandshake('piggies');
    }).toThrow(new Error('Handshake must be a number'));
  });
});

@@ -85,15 +85,42 @@
 %3E %7B%0A
+%0A
   it('
-1
+binary 1 (hexadecimal 0x01)
  is 
@@ -178,16 +178,19 @@
 ndshake(
+0x0
 1);%0A    
@@ -251,18 +251,44 @@
 %0A  xit('
-10
+binary 10 (hexadecimal 0x02)
  is a do
@@ -350,16 +350,19 @@
 ndshake(
+0x0
 2);%0A    
@@ -431,19 +431,45 @@
 %0A  xit('
-100
+binary 100 (hexadecimal 0x04)
  is clos
@@ -532,16 +532,19 @@
 ndshake(
+0x0
 4);%0A    
@@ -620,12 +620,38 @@
 it('
-1000
+binary 1000 (hexadecimal 0x08)
  is 
@@ -707,16 +707,19 @@
 ndshake(
+0x0
 8);%0A    
@@ -780,18 +780,44 @@
 %0A  xit('
-11
+binary 11 (hexadecimal 0x03)
  is wink
@@ -886,16 +886,19 @@
 ndshake(
+0x0
 3);%0A    
@@ -978,13 +978,39 @@
 it('
-10011
+binary 10011 (hexadecimal 0x13)
  is 
@@ -1087,10 +1087,12 @@
 ake(
-19
+0x13
 );%0A 
@@ -1175,13 +1175,39 @@
 it('
-11111
+binary 11111 (hexadecimal 0x1F)
  is 
@@ -1308,10 +1308,12 @@
 ake(
-31
+0x1F
 );%0A 
@@ -1478,46 +1478,13 @@
 ect(
- function () %7B%0A      const handshake =
+() =%3E
  new
@@ -1514,16 +1514,16 @@
 es')
-;
+)
 %0A    
-%7D)
+  
 .toT
@@ -1575,12 +1575,14 @@
 ;%0A  %7D);%0A
+%0A
 %7D);%0A
+%0A

Improve test descriptions on Secret handshake