Skip to content

Commit

Permalink
fix: ApiDocumentContent.ToJSON expected custom name
Browse files Browse the repository at this point in the history
  • Loading branch information
askonev committed Nov 28, 2023
1 parent 50287a0 commit c9b8a1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/docx/smoke/api_document_content_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# frozen_string_literal: true
# frozen_string_literal: true

require 'spec_helper'
describe 'ApiDocumentContent section tests' do
Expand Down Expand Up @@ -59,7 +58,7 @@
docx = builder.build_and_parse('js/docx/smoke/api_document_content/to_json.js')
expect(docx.elements[0].hyperlink.action.to_s).to eq('external_link')
expect(docx.elements[1].sdt_content.elements[1].character_style_array[0].text).to eq('oBlockLvlSdt')
expect(docx.elements[2].properties.table_style.style_id).to eq(DocBuilderStaticData::TABLE_STYLE[:BorderedAccent5])
expect(docx.elements[2].properties.table_style.name).to eq('CustomTableStyle')
json = JSON.parse(docx.elements[5].nonempty_runs.first.text)
expect(json['type']).to eq('docContent')
expect(json['content'][0]['content'][2]['type']).to eq('hyperlink')
Expand Down

0 comments on commit c9b8a1d

Please sign in to comment.