downloadChromeDriver(tmpDir, tmpDir, '0.23', badUrl, expectedError => { assert.truthy(expectedError); assert.include('404', expectedError.message); downloadChromeDriver(tmpDir, tmpDir, '0.23', goodUrl, unexpectedError => { if (unexpectedError) { done(unexpectedError); return; } assert.equal(CHROME_DRIVER_SIZE, fs.statSync(tmpFilePath).size); done(); }); });
it('works', function(){ assert.truthy(this.answers); assert.truthy(this.badges); });