From 3a12f6fb0cf94efb6053d4a3232a6441cf475edc Mon Sep 17 00:00:00 2001 From: MaxSorokin Date: Tue, 28 Nov 2023 14:06:15 +0300 Subject: [PATCH] fix: ApiDocumentContent.ToJSON expected custom name --- spec/docx/smoke/api_document_content_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spec/docx/smoke/api_document_content_spec.rb b/spec/docx/smoke/api_document_content_spec.rb index afcfff15..a2acf323 100644 --- a/spec/docx/smoke/api_document_content_spec.rb +++ b/spec/docx/smoke/api_document_content_spec.rb @@ -1,5 +1,4 @@ # frozen_string_literal: true -# frozen_string_literal: true require 'spec_helper' describe 'ApiDocumentContent section tests' do @@ -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')