test( 'should return true if there are no edits and the post has content', () => {
		const hasContent = editedPostHasContent(
			{
				posts: {
					queries: {
						2916284: new PostQueryManager( {
							items: {
								841: {
									ID: 841,
									site_ID: 2916284,
									global_ID: '3d097cb7c5473c169bba0eb8e3c6cb64',
									type: 'post',
									content: 'ribs',
								},
							},
						} ),
					},
					edits: {},
				},
				ui: {
					editor: {
						rawContent: {},
					},
				},
			},
			2916284,
			841
		);

		expect( hasContent ).to.be.true;
	} );
	test( 'should return true if there are excerpt edits', () => {
		const hasContent = editedPostHasContent(
			{
				posts: {
					queries: {},
					edits: {
						2916284: {
							841: {
								excerpt: 'chicken ribs',
							},
						},
					},
				},
				ui: {
					editor: {
						rawContent: {},
					},
				},
			},
			2916284,
			841
		);

		expect( hasContent ).to.be.true;
	} );
	test( 'should return false if there are no edits and no post', () => {
		const hasContent = editedPostHasContent(
			{
				posts: {
					queries: {},
					edits: {},
				},
				ui: {
					editor: {
						rawContent: {},
					},
				},
			},
			2916284,
			841
		);

		expect( hasContent ).to.be.false;
	} );
	test( 'should return false if there are empty edits that overrides the post attributes', () => {
		const hasContent = editedPostHasContent(
			{
				posts: {
					queries: {
						2916284: new PostQueryManager( {
							items: {
								841: {
									ID: 841,
									site_ID: 2916284,
									global_ID: '3d097cb7c5473c169bba0eb8e3c6cb64',
									type: 'post',
									title: 'chicken',
									content: 'ribs',
									excerpt: 'chicken ribs',
								},
							},
						} ),
					},
					edits: {
						2916284: {
							841: {
								title: '',
								content: '',
								excerpt: '',
							},
						},
					},
				},
				ui: {
					editor: {
						rawContent: {},
					},
				},
			},
			2916284,
			841
		);

		expect( hasContent ).to.be.false;
	} );