test(widget-markdown): change test name to be more descriptive (#3321)
This commit is contained in:
@ -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({
|
||||||
|
Reference in New Issue
Block a user