Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing for the CiceroMark to OOXML transformer. #40

Open
nishihere19 opened this issue Apr 10, 2021 · 0 comments
Open

Testing for the CiceroMark to OOXML transformer. #40

nishihere19 opened this issue Apr 10, 2021 · 0 comments

Comments

@nishihere19
Copy link

Discussion 🗣

Testing for the existing ciceromark to ooxml transform using jest, chai, xml-js packages can be implemented which will enable easier debugging.

Context

Detailed Description

The XML generated in the document directly is slightly different from what is generated upon transformation. Details such as font properties exist in the XML document while they aren't present when the ciceromark is transformed to XML, hence it must be taken care of.
To avoid any indentation, whitespace, and other problems that lead to failing the test cases, the xml-js package needs to be used.
Error is received at Word.Style.heading1 in

1: { style: Word.Style.heading1, size: 25 },

The reason being that it does not recognize Word as a defined variable and hence, a possible solution is to create a duplicate file for the CicerMarkToOoxml.js and replace Word.Style.heading# to "Word.Style.heading#" which ultimately ignores the error and runs the tests successfully.
Currently, on implementing the above approach, the test case passed for [email protected].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant