Skip to content

Commit

Permalink
Make extractComments true by default
Browse files Browse the repository at this point in the history
  • Loading branch information
ephys committed Oct 30, 2017
1 parent 7098c07 commit 46aabdc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions src/__tests__/__snapshots__/index.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,16 @@ export default defineMessages({
// The main Hello of our app.
hello: {
'id': 'src.__fixtures__.hello',
'defaultMessage': 'hello'
'defaultMessage': 'hello',
'description': 'The main Hello of our app.'
},
// Another Hello,
// multiline this time
world: {
id: 'hello.world',
defaultMessage: 'hello world'
defaultMessage: 'hello world',
'description': 'Another Hello,\\\\nmultiline this time'
}
});
"
Expand Down Expand Up @@ -354,7 +356,7 @@ hello({
"
`;
exports[`extractComments = true - default 1`] = `
exports[`extractComments = false - default 1`] = `
"
import { defineMessages } from 'react-intl'
Expand All @@ -380,7 +382,7 @@ export default defineMessages({
"
`;
exports[`extractComments = true - leading comment 1`] = `
exports[`extractComments = false - leading comment 1`] = `
"
import { defineMessages } from 'react-intl'
Expand All @@ -404,22 +406,20 @@ export default defineMessages({
// The main Hello of our app.
hello: {
'id': 'src.__fixtures__.hello',
'defaultMessage': 'hello',
'description': 'The main Hello of our app.'
'defaultMessage': 'hello'
},
// Another Hello,
// multiline this time
world: {
id: 'hello.world',
defaultMessage: 'hello world',
'description': 'Another Hello,\\\\nmultiline this time'
defaultMessage: 'hello world'
}
});
"
`;
exports[`extractComments = true - leading comment with description 1`] = `
exports[`extractComments = false - leading comment with description 1`] = `
"
import { defineMessages } from 'react-intl'
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ pTest({
})

pTest({
title: 'extractComments = true',
title: 'extractComments = false',
tests: [defaultTest, leadingCommentTest, leadingCommentWithDescriptionTest],
pluginOptions: { extractComments: true },
pluginOptions: { extractComments: false },
})

0 comments on commit 46aabdc

Please sign in to comment.