{ hasPublishAction ? __( 'Here, you can do a last-minute check up of your settings below, before you publish.' ) : __( 'When you\'re ready, submit your work for review, and an Editor will be able to approve it for you.' ) }
+{ hasPublishAction ? __( 'Here, you can do a last-minute check up of your settings below, before you publish.' ) : __( 'When you’re ready, submit your work for review, and an Editor will be able to approve it for you.' ) }
{ hasPublishAction && ({ __( 'The content of your post doesn\'t match the template assigned to your post type.' ) }
+{ __( 'The content of your post doesn’t match the template assigned to your post type.' ) }
${ code }\n\nIsn't that cool?`; // Expected text after autop - let expected = '
Look at this code
\n' + code + '\n
Isn\'t that cool?
'; + let expected = `Look at this code
\n${ code }\n
Isn't that cool?
`; expect( autop( str ).trim() ).toBe( expected ); // Make sure HTML breaks are maintained if manually inserted diff --git a/packages/babel-plugin-makepot/test/index.js b/packages/babel-plugin-makepot/test/index.js index 14137de42678d..17af021380b9e 100644 --- a/packages/babel-plugin-makepot/test/index.js +++ b/packages/babel-plugin-makepot/test/index.js @@ -56,37 +56,37 @@ describe( 'babel-plugin', () => { } it( 'should not return translator comment on same line but after call expression', () => { - const comment = getCommentFromString( '__( \'Hello world\' ); // translators: Greeting' ); + const comment = getCommentFromString( "__( 'Hello world' ); // translators: Greeting" ); expect( comment ).toBeUndefined(); } ); it( 'should return translator comment on leading comments', () => { - const comment = getCommentFromString( '// translators: Greeting\n__( \'Hello world\' );' ); + const comment = getCommentFromString( "// translators: Greeting\n__( 'Hello world' );" ); expect( comment ).toBe( 'Greeting' ); } ); it( 'should be case insensitive to translator prefix', () => { - const comment = getCommentFromString( '// TrANslAtORs: Greeting\n__( \'Hello world\' );' ); + const comment = getCommentFromString( "// TrANslAtORs: Greeting\n__( 'Hello world' );" ); expect( comment ).toBe( 'Greeting' ); } ); it( 'should traverse up parents until it encounters comment', () => { - const comment = getCommentFromString( '// translators: Greeting\nconst string = __( \'Hello world\' );' ); + const comment = getCommentFromString( "// translators: Greeting\nconst string = __( 'Hello world' );" ); expect( comment ).toBe( 'Greeting' ); } ); it( 'should not consider comment if it does not end on same or previous line', () => { - const comment = getCommentFromString( '// translators: Greeting\n\n__( \'Hello world\' );' ); + const comment = getCommentFromString( "// translators: Greeting\n\n__( 'Hello world' );" ); expect( comment ).toBeUndefined(); } ); it( 'should use multi-line comment starting many lines previous', () => { - const comment = getCommentFromString( '/* translators: Long comment\nspanning multiple \nlines */\nconst string = __( \'Hello world\' );' ); + const comment = getCommentFromString( "/* translators: Long comment\nspanning multiple \nlines */\nconst string = __( 'Hello world' );" ); expect( comment ).toBe( 'Long comment spanning multiple lines' ); } ); diff --git a/packages/blocks/src/api/test/factory.js b/packages/blocks/src/api/test/factory.js index 015f2686d4098..12363de75f072 100644 --- a/packages/blocks/src/api/test/factory.js +++ b/packages/blocks/src/api/test/factory.js @@ -629,7 +629,7 @@ describe( 'block factory', () => { expect( availableBlocks ).toEqual( [] ); } ); - it( 'for a non multiblock transform, the isMatch function receives the source block\'s attributes object as its first argument', () => { + it( 'for a non multiblock transform, the isMatch function receives the source block’s attributes object as its first argument', () => { const isMatch = jest.fn(); registerBlockType( 'core/updated-text-block', { @@ -661,7 +661,7 @@ describe( 'block factory', () => { expect( isMatch ).toHaveBeenCalledWith( { value: 'ribs' } ); } ); - it( 'for a multiblock transform, the isMatch function receives an array containing every source block\'s attributes as its first argument', () => { + it( 'for a multiblock transform, the isMatch function receives an array containing every source block’s attributes as its first argument', () => { const isMatch = jest.fn(); registerBlockType( 'core/updated-text-block', { diff --git a/packages/blocks/src/api/test/parser.js b/packages/blocks/src/api/test/parser.js index 0b811b9d9a279..3c12fee973ff4 100644 --- a/packages/blocks/src/api/test/parser.js +++ b/packages/blocks/src/api/test/parser.js @@ -137,7 +137,7 @@ describe( 'block parser', () => { } ); describe( 'parseWithAttributeSchema', () => { - it( 'should return the matcher\'s attribute value', () => { + it( 'should return the matcher’s attribute value', () => { const value = parseWithAttributeSchema( '