actions/accounts: remove n/a test
This commit is contained in:
parent
1aef2eaf22
commit
53cb5f723b
|
@ -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, {})
|
||||||
|
|
Loading…
Reference in New Issue