Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Sep 18, 2017
1 parent 1bc6c3e commit 83d7ab6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,20 @@ Array [
"child": Object {
"children": Array [],
"frontmatter": Object {
"date": "12/12/2014",
"date": "2017-09-18T23:19:51.246Z",
"parent": "whatever",
"title": "my little pony",
},
"id": "whatever >>> MarkdownRemark",
"internal": Object {
"content": "---
title: \\"my little pony\\"
date: \\"12/12/2014\\"
date: \\"2017-09-18T23:19:51.246Z\\"
---
Where oh where is my little pony?
",
"contentDigest": "54cfa2ad99756f2fa232cac585280a37",
"contentDigest": "1235e2d6fdcadd5f09bf4c221bdf9094",
"type": "MarkdownRemark",
},
"parent": "whatever",
Expand All @@ -57,7 +57,7 @@ Where oh where is my little pony?
"children": Array [],
"content": "---
title: \\"my little pony\\"
date: \\"12/12/2014\\"
date: \\"2017-09-18T23:19:51.246Z\\"
---
Where oh where is my little pony?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ Where oh where is my little pony?
boundActionCreators,
}).then(() => {
expect(createNode.mock.calls).toMatchSnapshot()
expect(_.isString(createNode.mock.calls[0].frontmatter.date)).toBeTruthy()
expect(
_.isString(createNode.mock.calls[0][0].frontmatter.date)
).toBeTruthy()
expect(createParentChildLink.mock.calls).toMatchSnapshot()
expect(createNode).toHaveBeenCalledTimes(1)
expect(createParentChildLink).toHaveBeenCalledTimes(1)
Expand Down

0 comments on commit 83d7ab6

Please sign in to comment.