function testConvertPng(pngName, done) {
  convertToIcns(path.join(__dirname, '../../', 'test-resources', pngName), (error, icnsPath) => {
    if (error) {
      done(error);
      return;
    }

    const stat = fs.statSync(icnsPath);
    assert.isTrue(stat.isFile(), 'Output icns file should be a path');
    done();
  });
}
// Prerequisite for test: to use OSX with sips, iconutil and imagemagick convert
Prerequisite for test: to use OSX with sips, iconutil and imagemagick convert
Prerequisite for test : to use OSX with sips iconutil and imagemagick convert
function testConvertPng(pngName, done) {
  convertToIcns(path.join(__dirname, '../../', 'test-resources', pngName), (error, icnsPath) => {
    if (error) {
      done(error);
      return;
    }
    const stat = fs.statSync(icnsPath);
    assert.isTrue(stat.isFile(), 'Output icns file should be a path');
    done();
  });
}
function testConvertPng ( pngName , done ) { convertToIcns ( path . join ( __dirname , '../../' , 'test-resources' , pngName ) , ( error , icnsPath ) => { if ( error ) { done ( error ) ; return ; } const stat = fs . statSync ( icnsPath ) ; assert . isTrue ( stat . isFile ( ) , 'Output icns file should be a path' ) ; done ( ) ; } ) ; }
Prerequisite for test: to use OSX with sips, iconutil and imagemagick convert
Prerequisite for test : to use OSX with sips iconutil and imagemagick convert