// 52: Generator - Send value to a generator
// To do: make all tests pass, leave the assert lines unchanged!

describe('pass a value to a generator', () => {

  it('basics: get the values from a generator in two ways', function() {
    function* generatorFunction() {
      yield 1;
      yield 2;
    }
    
    // way #1
    var convertedToAnArray = Array.from(generatorFunction());
    
    // way #2
    var iterator = generatorFunction();
    var iteratedOver = [iterator.next().___, iterator.___];
    
    assert.deepEqual(convertedToAnArray, iteratedOver);
  });

  it('pass a value to the iterator', function() {
    function* generatorFunction() {
      yield 1;
      yield param;
    }

    var iterator = generatorFunction();
    var iteratedOver = [iterator.next().value, iterator.next(2).value];
    
    assert.deepEqual([1, 2], iteratedOver);
  });

  it('a value passed to the 1st `next()` call is ignored', function() {
    function* generatorFunction() {
      yield 1;
    }

    let iterator = generatorFunction();
    iterator.next('first');
    assert.equal(iterator.next(2).value, 2);
  });

});

// 52: Generator - Send value to a generator
// To do: make all tests pass, leave the assert lines unchanged!

describe('pass a value to a generator', () => {

  it('basics: get the values from a generator in two ways', function() {
    function* generatorFunction() {
      yield 1;
      yield 2;
    }
    
    // way #1
    var convertedToAnArray = Array.from(generatorFunction());
    
    // way #2
    var iterator = generatorFunction();
    var iteratedOver = [iterator.next().___, iterator.___];
    
    assert.deepEqual(convertedToAnArray, iteratedOver);
  });

  it('pass a value to the iterator', function() {
    function* generatorFunction() {
      yield 1;
      yield param;
    }

    var iterator = generatorFunction();
    var iteratedOver = [iterator.next().value, iterator.next(2).value];
    
    assert.deepEqual([1, 2], iteratedOver);
  });

  it('a value passed to the 1st `next()` call is ignored', function() {
    function* generatorFunction() {
      let value = yield 1;
      yield value;
    }

    let iterator = generatorFunction();
    iterator.next('first');
    assert.equal(iterator.next().value, 2);
  });

});

--- 
+++ 
@@ -33,13 +33,12 @@
 
   it('a value passed to the 1st `next()` call is ignored', function() {
     function* generatorFunction() {
-      let value = yield 1;
-      yield value;
+      yield 1;
     }
 
     let iterator = generatorFunction();
     iterator.next('first');
-    assert.equal(iterator.next().value, 2);
+    assert.equal(iterator.next(2).value, 2);
   });
 
 });
Make it unnecessary to modify the last assert.