Skip to content
Snippets Groups Projects
Unverified Commit 78e99315 authored by Aya Morisawa's avatar Aya Morisawa Committed by GitHub
Browse files

Update text.js

parent 50528955
No related branches found
No related tags found
No related merge requests found
......@@ -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);
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment