Remove stale test
This commit is contained in:
parent
f2ba9e1a9b
commit
6fb38b940a
1 changed files with 0 additions and 41 deletions
|
@ -5,24 +5,15 @@ import { assert } from 'chai';
|
|||
import * as sinon from 'sinon';
|
||||
import { RowType } from '../../../components/ConversationList';
|
||||
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper';
|
||||
import * as remoteConfig from '../../../RemoteConfig';
|
||||
import { getDefaultConversation } from '../../../test-both/helpers/getDefaultConversation';
|
||||
|
||||
import { LeftPaneComposeHelper } from '../../../components/leftPane/LeftPaneComposeHelper';
|
||||
|
||||
describe('LeftPaneComposeHelper', () => {
|
||||
let sinonSandbox: sinon.SinonSandbox;
|
||||
let remoteConfigStub: sinon.SinonStub;
|
||||
|
||||
beforeEach(() => {
|
||||
sinonSandbox = sinon.createSandbox();
|
||||
|
||||
remoteConfigStub = sinonSandbox
|
||||
.stub(remoteConfig, 'isEnabled')
|
||||
.withArgs('desktop.storage')
|
||||
.returns(true)
|
||||
.withArgs('desktop.storageWrite3')
|
||||
.returns(true);
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
|
@ -224,38 +215,6 @@ describe('LeftPaneComposeHelper', () => {
|
|||
});
|
||||
});
|
||||
|
||||
it("doesn't let you create new groups if storage service write is disabled", () => {
|
||||
remoteConfigStub
|
||||
.withArgs('desktop.storage')
|
||||
.returns(false)
|
||||
.withArgs('desktop.storageWrite3')
|
||||
.returns(false);
|
||||
|
||||
assert.isUndefined(
|
||||
new LeftPaneComposeHelper({
|
||||
composeContacts: [],
|
||||
composeGroups: [],
|
||||
regionCode: 'US',
|
||||
searchTerm: '',
|
||||
}).getRow(0)
|
||||
);
|
||||
|
||||
remoteConfigStub
|
||||
.withArgs('desktop.storage')
|
||||
.returns(true)
|
||||
.withArgs('desktop.storageWrite3')
|
||||
.returns(false);
|
||||
|
||||
assert.isUndefined(
|
||||
new LeftPaneComposeHelper({
|
||||
composeContacts: [],
|
||||
composeGroups: [],
|
||||
regionCode: 'US',
|
||||
searchTerm: '',
|
||||
}).getRow(0)
|
||||
);
|
||||
});
|
||||
|
||||
it('returns no rows if searching and there are no results', () => {
|
||||
const helper = new LeftPaneComposeHelper({
|
||||
composeContacts: [],
|
||||
|
|
Loading…
Reference in a new issue