Skip to content
This repository has been archived by the owner on Mar 8, 2019. It is now read-only.

Commit

Permalink
fix: test propHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
elevatebart committed Feb 15, 2019
1 parent 2787c5e commit 10b6fd7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/template-handlers/__tests__/propHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('slotHandler', () => {
{ comments: true },
).ast
if (ast) {
traverse(ast, doc, [propHandler], { functional: true })
traverse(ast, doc, [propHandler], { functional: true, rootLeadingComment: '' })
expect(doc.toObject().props).toMatchObject({ size: { type: { name: 'undefined' } } })
} else {
fail()
Expand All @@ -40,7 +40,7 @@ describe('slotHandler', () => {
{ comments: true },
).ast
if (ast) {
traverse(ast, doc, [propHandler], { functional: true })
traverse(ast, doc, [propHandler], { functional: true, rootLeadingComment: '' })
expect(doc.toObject().props).toMatchObject({ name: { type: { name: 'undefined' } } })
} else {
fail()
Expand All @@ -58,7 +58,7 @@ describe('slotHandler', () => {
{ comments: true },
).ast
if (ast) {
traverse(ast, doc, [propHandler], { functional: true })
traverse(ast, doc, [propHandler], { functional: true, rootLeadingComment: '' })
expect(doc.toObject().props).toBeUndefined()
} else {
fail()
Expand All @@ -76,7 +76,7 @@ describe('slotHandler', () => {
{ comments: true },
).ast
if (ast) {
traverse(ast, doc, [propHandler], { functional: true })
traverse(ast, doc, [propHandler], { functional: true, rootLeadingComment: '' })
expect(doc.toObject().props).toBeUndefined()
} else {
fail()
Expand Down

0 comments on commit 10b6fd7

Please # to comment.