Explorar el Código

[misc] get rid of unsafe Buffer usage

Jakob Ackermann hace 6 años
padre
commit
4b3ed5e9b1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      services/chat/test/acceptance/js/SendingAMessageTests.js

+ 1 - 1
services/chat/test/acceptance/js/SendingAMessageTests.js

@@ -179,7 +179,7 @@ describe('Sending a message', function () {
 
 
     return describe('with very long content', function () {
     return describe('with very long content', function () {
       return it('should return a graceful error', function (done) {
       return it('should return a graceful error', function (done) {
-        const content = new Buffer(10240).toString('hex')
+        const content = '-'.repeat(10 * 1024 + 1)
         return ChatClient.sendMessage(
         return ChatClient.sendMessage(
           this.project_id,
           this.project_id,
           this.thread_id,
           this.thread_id,