Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad committed Jan 3, 2017
1 parent 41faa41 commit 6cc79f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/state/posts/test/selectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,10 @@ describe( 'selectors', () => {
} );

describe( '#getEditedPost()', () => {
beforeEach( () => {
getEditedPost.memoizedSelector.cache.clear();
} );

it( 'should return the original post if no revisions exist on site', () => {
const postObject = {
ID: 841,
Expand Down Expand Up @@ -1251,10 +1255,6 @@ describe( 'selectors', () => {
} );

describe( 'editedPostHasContent()', () => {
beforeEach( () => {
editedPostHasContent.memoizedSelector.cache.clear();
} );

it( 'should return false if there are no edits and no post', () => {
const hasContent = editedPostHasContent( {
posts: {
Expand Down

0 comments on commit 6cc79f0

Please sign in to comment.