test(widget-markdown): change test name to be more descriptive (#3321)

This commit is contained in:
Erez Rokah
2020-02-25 16:17:03 +01:00
committed by GitHub
parent 684b79e43b
commit 9211075cf0
2 changed files with 4 additions and 2 deletions

View File

@ -3,8 +3,10 @@ import fs from 'fs';
import { markdownToSlate } from '../'; import { markdownToSlate } from '../';
describe('markdownToSlate', () => { describe('markdownToSlate', () => {
it('should handle use case from issue 3280', () => { it('should not add duplicate identical marks under the same node (GitHub Issue 3280)', () => {
const mdast = fs.readFileSync(path.join(__dirname, '__fixtures__', 'issue_3280.md')); const mdast = fs.readFileSync(
path.join(__dirname, '__fixtures__', 'duplicate_marks_github_issue_3280.md'),
);
const slate = markdownToSlate(mdast); const slate = markdownToSlate(mdast);
expect(slate).toEqual({ expect(slate).toEqual({