title: How to test redux-saga delay
body: <h2>Problem</h2>
  
  <p>In <code>redux-saga</code>, I am using <code>yield delay(1000);</code>.
  During my unit test, I do <code>expect(generator.next().value).toEqual(delay(1000));</code>.</p>
  
  <p>I expect the test to pass.</p>
  
  <p>This is my <code>sagas.js</code>:</p>
  
  <pre><code>import { delay } from 'redux-saga';
  
  export function* incrementAsync() {
    yield delay(1000);
  }
  </code></pre>
  
  <p>This is my <code>sagas.test.js</code></p>
  
  <pre><code>import { delay } from 'redux-saga';
  import { incrementAsync } from '../sagas';
  
  describe('incrementAsync Saga test', () =&gt; {
    it('should incrementAsync', () =&gt; {
      const generator = incrementAsync();
      expect(generator.next().value).toEqual(delay(1000));
    });
  });
  </code></pre>
  
  <p>● incrementAsync Saga test › should incrementAsync</p>
  
  <pre><code>expect(received).toEqual(expected)
  
  Expected value to equal:
    {"@@redux-saga/CANCEL_PROMISE": [Function anonymous]}
  Received:
    {"@@redux-saga/CANCEL_PROMISE": [Function anonymous]}
  
  Difference:
  
  Compared values have no visual difference.
  </code></pre>
  
  <h2>question</h2>
  
  <p>How can I test <strong>redux-saga</strong> <strong>delay</strong> ?</p>