X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fhelpers%2Fcomment-model.ts;h=4c51b70003aa2f3805132ced1a769c0f7b9837ad;hb=a15871560f80e07386c1dabb8370cd2664ecfd1f;hp=ebfd779e1a2dc3ced834fcd76f8ec5e467e5ee91;hpb=a22046d166805222ca76060e471b6cb3d419a32d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/helpers/comment-model.ts b/server/tests/helpers/comment-model.ts index ebfd779e1..4c51b7000 100644 --- a/server/tests/helpers/comment-model.ts +++ b/server/tests/helpers/comment-model.ts @@ -1,4 +1,4 @@ -/* tslint:disable:no-unused-expression */ +/* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ import * as chai from 'chai' import 'mocha' @@ -20,7 +20,7 @@ describe('Comment model', function () { comment.text = '@florian @jean@localhost:9000 @flo @another@localhost:9000 @flo2@jean.com hello ' + 'email@localhost:9000 coucou.com no? @chocobozzz @chocobozzz @end' - const result = comment.extractMentions().sort() + const result = comment.extractMentions().sort((a, b) => a.localeCompare(b)) expect(result).to.deep.equal([ 'another', 'chocobozzz', 'end', 'flo', 'florian', 'jean' ]) })