Skip to content

Commit

Permalink
i18n: Disable valid-sprintf for intentional error test case
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed Feb 8, 2019
1 parent 1d1d5de commit afe9838
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/i18n/src/test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ describe( 'i18n', () => {

describe( 'sprintf()', () => {
it( 'absorbs errors', () => {
// Disable reason: Failing case is the purpose of the test.
// eslint-disable-next-line @wordpress/valid-sprintf
const result = sprintf( 'Hello %(placeholder-not-provided)s' );

expect( console ).toHaveErrored();
Expand Down

0 comments on commit afe9838

Please sign in to comment.