/* globals expect, it, describe, Metadata */ 'use strict'; describe('metadata', function() { describe('incorrect_xmp', function() { it('should fix the incorrect XMP data', function() { var invalidXMP = '' + '' + '' + '\\376\\377\\000P\\000D\\000F\\000&' + ''; var meta = new Metadata(invalidXMP); expect(meta.get('dc:title')).toEqual('PDF&'); }); }); });