Welcome to mirror list, hosted at ThFree Co, Russian Federation.

adf_commonmark_pipeline_spec.rb « jira_import « pipeline « banzai « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d8841a9753eec9f62c66c3c1076cbdfc8b706282 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Banzai::Pipeline::JiraImport::AdfCommonmarkPipeline do
  let_it_be(:fixtures_path) { 'lib/kramdown/atlassian_document_format' }

  it 'converts text in Atlassian Document Format ' do
    source = fixture_file(File.join(fixtures_path, 'paragraph.json'))
    target = fixture_file(File.join(fixtures_path, 'paragraph.md'))
    output = described_class.call(source, {})[:output]

    expect(output).to eq target
  end
end