import { serializeToJson5 } from './json5' ; describe ( 'dev/i18n/serializers/json5' , ( ) => { test ( 'should serialize default messages to JSON5' , ( ) => { const messages = [ [ 'plugin1.message.id-1' , { message : 'Message text 1' , } , ] , [ 'plugin2.message.id-2' , { message : 'Message text 2' , description : 'Message description' , } , ] , ] ; expect ( serializeToJson5 ( messages ) . toString ( ) ) . toMatchSnapshot ( ) ; } ) ; } ) ;