mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Move to eslint
This commit is contained in:
parent
a22046d166
commit
a15871560f
390 changed files with 3950 additions and 3615 deletions
|
@ -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' ])
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue