import {fromGenMaker} from '../src/arbitrary';

describe('Monkey Testing', () => {

  it('behaviour', (done) => {
    let m = new ke.monkey.Monkey();
    let insert = fromGenMaker(function() {
      return function(engine, locale) {
        return function(done) {
          return done(1);
        };
      };
    });
    m.behaviour('insert', insert, {
      postcond: (n) => expect(n).eq(1)
    });
    m.start();

    setInterval(function() {
      m.stop();
      done();
    }, 500);
  });

});

@@ -250,20 +250,19 @@
 unction(
-done
+end
 ) %7B%0A    
@@ -274,20 +274,19 @@
  return 
-done
+end
 (1);%0A   
@@ -420,16 +420,15 @@
  set
-Interval
+Timeout
 (fun

Fix test error.