Skip to content

Commit

Permalink
tests: fix prettier tests <div></div>
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge committed Jul 15, 2019
1 parent 6da4f8a commit d430012
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/plugin-prettier/src/index.test.js
Expand Up @@ -10,7 +10,7 @@ describe('prettier', () => {
},
{},
)
expect(result).toBe('const foo = <div />\n')
expect(result).toBe('const foo = <div></div>\n')
})

it('should support config.prettierConfig', () => {
Expand All @@ -23,7 +23,7 @@ describe('prettier', () => {
},
{},
)
expect(result).toBe('const foo = <div />;\n')
expect(result).toBe('const foo = <div></div>;\n')
})

it('should use state.filePath to detect configuration', () => {
Expand All @@ -32,7 +32,7 @@ describe('prettier', () => {
{ prettier: true, runtimeConfig: true },
{ filePath: '/tmp' },
)
expect(result).toBe('const foo = <div />;\n')
expect(result).toBe('const foo = <div></div>;\n')
})

it('should resolve the prettier config with the editorconfig option', () => {
Expand Down

0 comments on commit d430012

Please sign in to comment.