Skip to content
Permalink
Browse files
Remove unnecessary spy (#763)
The stubbing is not actually needed for the tests. It rather causes problems if the tests are using an up-to-date cordova-android as that currently requires ActionStack.prototype.process to return a Q instance.
  • Loading branch information
raphinesse committed Apr 13, 2019
1 parent 07a0dd8 commit 6f153bb93eb2d659a5111eaf4df07ad902a59eb9
Showing 1 changed file with 1 addition and 3 deletions.
@@ -21,7 +21,7 @@ const fs = require('fs-extra');
const path = require('path');
const rewire = require('rewire');

const { ActionStack, PluginInfo, events } = require('cordova-common');
const { PluginInfo, events } = require('cordova-common');
const common = require('../spec/common');
const install = require('../src/plugman/install');
const platforms = require('../src/platforms/platforms');
@@ -96,8 +96,6 @@ describe('plugman/uninstall', () => {

beforeEach(function () {
setupProject('uninstall.test');

spyOn(ActionStack.prototype, 'process').and.returnValue(Promise.resolve());
});

describe('success', function () {

0 comments on commit 6f153bb

Please sign in to comment.