import screenrec from '../lib/';

describe("Screenrec test", () => {
   it("Test screenrec", (done) => {
     throw new Error("not working yet!");
   });
});


@@ -1,22 +1,22 @@
 import 
-s
+S
 creen
-r
+R
 ec from 
@@ -64,16 +64,18 @@
  =%3E %7B%0A  
+%0A 
  it(%22Tes
@@ -80,17 +80,36 @@
 est 
-s
+S
 creen
-r
+R
 ec
+ options are setted
 %22, (
@@ -123,58 +123,866 @@
 %3E %7B%0A
+%0A
     
- throw new Error(%22not working yet!
+let app = new ScreenRec(%7B%0A      time: 12,%0A      output: %22output%22,%0A      silent: false,%0A      togif: true,%0A      wait4key: true%0A    %7D);%0A%0A    let options = app.options;%0A    if(options.time != 12) throw new Error(%22Error setting time param!%22);%0A    if(options.output != %22output%22) throw new Error(%22Error setting output param!%22);%0A    if(options.silent != false) throw new Error(%22Error setting silent param!%22);%0A    if(options.togif != true) throw new Error(%22Error setting togif param!%22);%0A    if(options.wait4key != true) throw new Error(%22Error setting wait4key param!%22);%0A    done();%0A  %7D);%0A%0A  it(%22Test ScreenRec stop method%22, (done) =%3E %7B%0A      %0A    let app = new ScreenRec(%7Bwait4key:true%7D);%0A    app.rec();%0A    app.stop();%0A    if(app.rec_child.killed != true)%0A      throw new Error(%22Stop method not killing child, run: killall ffmpeg
 %22);%0A
+%0A
  
+   done();%0A%0A
   %7D);%0A
+  %0A
 %7D);%0A
+  
 %0A

add tests