diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2018-01-21 15:49:31 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-01-21 15:49:31 +0900 |
| commit | 78e99315241a384dc246a78c399e9a8955ab8eb9 (patch) | |
| tree | 057fe1a748fc43d4c03abb1eb89e555532182fd4 | |
| parent | Refactor (diff) | |
| download | misskey-78e99315241a384dc246a78c399e9a8955ab8eb9.tar.gz misskey-78e99315241a384dc246a78c399e9a8955ab8eb9.tar.bz2 misskey-78e99315241a384dc246a78c399e9a8955ab8eb9.zip | |
Update text.js
| -rw-r--r-- | test/text.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/text.js b/test/text.js index 49e2f02b5d..24800ac448 100644 --- a/test/text.js +++ b/test/text.js @@ -8,7 +8,7 @@ const analyze = require('../built/api/common/text').default; const syntaxhighlighter = require('../built/api/common/text/core/syntax-highlighter').default; describe('Text', () => { - it('is correctly analyzed', () => { + it('can be analyzed', () => { const tokens = analyze('@himawari お腹ペコい :cat: #yryr'); assert.deepEqual([ { type: 'mention', content: '@himawari', username: 'himawari' }, @@ -19,7 +19,7 @@ describe('Text', () => { ], tokens); }); - it('逆関数で正しく復元できる', () => { + it('can be inverted', () => { const text = '@himawari お腹ペコい :cat: #yryr'; assert.equal(analyze(text).map(x => x.content).join(''), text); }); |