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 * as sinon from 'sinon';
|
||||||
import { RowType } from '../../../components/ConversationList';
|
import { RowType } from '../../../components/ConversationList';
|
||||||
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper';
|
import { FindDirection } from '../../../components/leftPane/LeftPaneHelper';
|
||||||
import * as remoteConfig from '../../../RemoteConfig';
|
|
||||||
import { getDefaultConversation } from '../../../test-both/helpers/getDefaultConversation';
|
import { getDefaultConversation } from '../../../test-both/helpers/getDefaultConversation';
|
||||||
|
|
||||||
import { LeftPaneComposeHelper } from '../../../components/leftPane/LeftPaneComposeHelper';
|
import { LeftPaneComposeHelper } from '../../../components/leftPane/LeftPaneComposeHelper';
|
||||||
|
|
||||||
describe('LeftPaneComposeHelper', () => {
|
describe('LeftPaneComposeHelper', () => {
|
||||||
let sinonSandbox: sinon.SinonSandbox;
|
let sinonSandbox: sinon.SinonSandbox;
|
||||||
let remoteConfigStub: sinon.SinonStub;
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
sinonSandbox = sinon.createSandbox();
|
sinonSandbox = sinon.createSandbox();
|
||||||
|
|
||||||
remoteConfigStub = sinonSandbox
|
|
||||||
.stub(remoteConfig, 'isEnabled')
|
|
||||||
.withArgs('desktop.storage')
|
|
||||||
.returns(true)
|
|
||||||
.withArgs('desktop.storageWrite3')
|
|
||||||
.returns(true);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
afterEach(() => {
|
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', () => {
|
it('returns no rows if searching and there are no results', () => {
|
||||||
const helper = new LeftPaneComposeHelper({
|
const helper = new LeftPaneComposeHelper({
|
||||||
composeContacts: [],
|
composeContacts: [],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue