Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
horike37 committed Sep 2, 2017
1 parent 17fd9a0 commit 994d1e6
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions lib/plugins/plugin/plugin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,17 +143,6 @@ describe('Plugin', () => {
});
});

it('should run promise chain in order for install:plugin:plugin" hook', () => {
const installStub = sinon
.stub(plugin, 'install').returns(BbPromise.resolve());

return plugin.hooks['install:plugin:plugin']().then(() => {
expect(installStub.calledOnce).to.equal(true);

plugin.install.restore();
});
});

it('should run promise chain in order for "plugin:uninstall:uninstall" hook', () => {
const uninstallStub = sinon
.stub(plugin, 'uninstall').returns(BbPromise.resolve());
Expand All @@ -165,17 +154,6 @@ describe('Plugin', () => {
});
});

it('should run promise chain in order for "uninstall:plugin:plugin" hook', () => {
const uninstallStub = sinon
.stub(plugin, 'uninstall').returns(BbPromise.resolve());

return expect(plugin.hooks['uninstall:plugin:plugin']()).to.be.fulfilled.then(() => {
expect(uninstallStub.calledOnce).to.equal(true);

plugin.uninstall.restore();
});
});

it('should run promise chain in order for "plugin:list:list" hook', () => {
const listStub = sinon
.stub(plugin, 'list').returns(BbPromise.resolve());
Expand Down

0 comments on commit 994d1e6

Please sign in to comment.