Skip to content

Instantly share code, notes, and snippets.

@johnthepink
Created November 16, 2016 03:24
Show Gist options
  • Save johnthepink/372368191e8c6bf11298970b0a81b885 to your computer and use it in GitHub Desktop.
Save johnthepink/372368191e8c6bf11298970b0a81b885 to your computer and use it in GitHub Desktop.
import { shallow } from "enzyme";
import { shallowToJson } from "enzyme-to-json";
import Layout from "../Layout";
const defaultProps = {
schedule: {
start: "2012-12-12",
details: [
{
amount: 2,
account: {
name: "test account"
}
},
],
schedule: {
description: "TEST",
payment: {
accountNumber: "111111111111111",
paymentType: "ACH",
},
},
transactions: [
{
date: "2013-12-12",
details: [
{
amount: 2,
account: "test detail account",
},
],
person: {},
},
{
date: "2013-12-12",
details: [
{
amount: 2,
account: "test detail account",
},
],
person: {},
},
],
},
stop: jest.fn(),
active: true,
complete: false,
ready: true,
entries: [
{
entryId: "1",
title: "test",
meta: {
summary: "test summary",
urlTitle: "test-summary",
},
content: {
images: [
{ url: "http://test.com/test.jpg" },
],
},
},
{
entryId: "1",
title: "test",
meta: {
summary: "test summary",
urlTitle: "test-summary",
},
content: {
images: [
{ url: "http://test.com/test.jpg" },
],
},
},
],
loadingEntries: false,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment