Skip to content

Commit

Permalink
Merge pull request #15 from Automattic/add/php-template-literal-test
Browse files Browse the repository at this point in the history
Add PHP template literal test
  • Loading branch information
Tug authored and sirreal committed Dec 11, 2018
1 parent 5b687a7 commit 7609971
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/i18n-calypso/test/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,11 @@ describe( 'index', function() {
it( 'should find options with a literal string key', function() {
expect( output ).to.have.string( 'context with a literal string key' );
} );

it( 'should handle template literals', function() {
expect( output ).to.have.string( 'My hat has six corners.' );
expect( output ).to.have.string( '"My hat\nhas seventeen\ncorners."' );
} );
} );

describe( 'PHP with an additional textdomain parameter', function() {
Expand Down

0 comments on commit 7609971

Please sign in to comment.