diff --git a/packages/typed-binary/src/test/string.test.ts b/packages/typed-binary/src/test/string.test.ts index 77cee25..f9f559d 100644 --- a/packages/typed-binary/src/test/string.test.ts +++ b/packages/typed-binary/src/test/string.test.ts @@ -34,4 +34,10 @@ describe('StringSchema', () => { const decoded = encodeAndDecode(string, value); expect(decoded).to.equal(value); }); + + it('should encode a unicode string', () => { + const value = 'A wonderful 🌞 sunny day! 🌲🌲🌲 Forest trip.'; + const decoded = encodeAndDecode(string, value); + expect(decoded).to.equal(value); + }); });