import TestFairyUploader from '../TestFairyUploader.es6.js'

describe("Test TestFairyUploader", () => {
        
  it("uploader value should empty platform param", (done) => {
    let uploader = new TestFairyUploader();
    if(uploader.uploader != null) 
      throw new Error("uploader instance should be null");
    done();
  })    

  it("uploader should be instance of TestFairyAndroid", (done) => {
    let uploader = new TestFairyUploader({platform:"android"});
    if(uploader.uploader == null)
      throw new Error("uploader class is null and should be instance of TestFairyAndroid");
    let className = uploader.uploader.constructor.name;
    if(className != "TestFairyAndroid")
      throw new Error("uploader class instance is not TestFairyAndroid, className: "+className);
    done();
  })

  it("uploader should be instance of TestFairyIOS", (done) => {
    let uploader = new TestFairyUploader({platform:"ios"});
    if(uploader.uploader == null)
      throw new Error("uploader class is null and should be instance of TestFairyAndroid");
    let className = uploader.uploader.constructor.name;
    if(className != "TestFairyIOS")
      throw new Error("uploader class instance is not TestFairyIOS, className: "+className);
    done();
  })

})

@@ -49,12 +49,8 @@
 der.
-es6.
 js'%0A
@@ -1247,11 +1247,440 @@
 ;%0A  %7D)%0A%0A
+  it(%22should return an error on empty api_key param%22, (done) =%3E %7B%0A    let uploader = new TestFairyUploader(%7Bplatform:%22android%22%7D);%0A    let %5Berr, result%5D = uploader.run();%0A    if(err == null)%0A      throw new Error(%22run failed to return an error on empty api_key param%22);%0A    if(err.message != %22Undefined api_key param%22)%0A      throw new Error(%22error message on empty params is not correct, message:%22+err.message);%0A    done();%0A  %7D)%0A%0A
 %7D)%0A

change test import