actions/accounts: remove n/a test

This commit is contained in:
Alex Gleason 2022-06-08 16:18:51 -05:00
parent 1aef2eaf22
commit 53cb5f723b
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
1 changed files with 15 additions and 25 deletions

View File

@ -148,7 +148,6 @@ describe('fetchAccountByUsername()', () => {
const username = 'tiger'; const username = 'tiger';
let state, account; let state, account;
describe('when the account has already been cached in redux', () => {
beforeEach(() => { beforeEach(() => {
account = normalizeAccount({ account = normalizeAccount({
id, id,
@ -170,15 +169,6 @@ describe('fetchAccountByUsername()', () => {
}); });
}); });
it('should return null', async() => {
const result = await store.dispatch(fetchAccountByUsername(username));
const actions = store.getActions();
expect(actions).toEqual([]);
expect(result).toBeNull();
});
});
describe('when "accountByUsername" feature is enabled', () => { describe('when "accountByUsername" feature is enabled', () => {
beforeEach(() => { beforeEach(() => {
const state = rootReducer(undefined, {}) const state = rootReducer(undefined, {})