Skip to content
Permalink
Browse files
Remove dead code in integration-tests/plugin.spec (#817)
  • Loading branch information
raphinesse committed Nov 2, 2019
1 parent 97d65e8 commit ff43a8ada430bc4cc668d8ff052cfd6718c5e1e2
Showing 1 changed file with 0 additions and 9 deletions.
@@ -81,13 +81,6 @@ function removePlugin (id) {
});
}

var errorHandler = {
errorCallback: function (error) {
// We want the error to be printed by jasmine
expect(error).toBeUndefined();
}
};

// We can't call add with a searchpath or else we will conflict with other tests
// that use a searchpath. See loadLocalPlugins() in plugman/fetch.js for details.
// The searchpath behavior gets tested in the plugman spec
@@ -118,13 +111,11 @@ describe('plugin end-to-end', function () {

spyOn(platforms, 'getPlatformApi').and.callThrough();
spyOn(install, 'runInstall').and.callThrough();
spyOn(errorHandler, 'errorCallback').and.callThrough();
});

afterEach(function () {
process.chdir(path.join(__dirname, '..')); // Needed to rm the dir on Windows.
fs.removeSync(project);
expect(errorHandler.errorCallback).not.toHaveBeenCalled();
});

it('Test 001 : should successfully add and remove a plugin with no options', function () {

0 comments on commit ff43a8a

Please sign in to comment.