-
Notifications
You must be signed in to change notification settings - Fork 191
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
kie-issues#2549: Decision Service cannot be recognized in columns of decision table #2684
Conversation
a6def1b
to
776efaa
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @danielzhe , during my manual check, I didn't find an issue. I put some comments to code inline. Please let me know what do you think about them.
import * as fs from "fs"; | ||
import * as path from "path"; | ||
import { getMarshaller } from "@kie-tools/dmn-marshaller"; | ||
//import {getMarshaller} from "@kie-tools/dmn-marshaller/d" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
leftover probably?
for (let i = 0; i < expected.length; i++) { | ||
expect(semanticMonacoTokens?.data[i]).toEqual(expected[i]); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can't we simplify?:
expect(semanticMonacoTokens?.data).toEqual(expected)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, their types are different and it fails if we do this way:
Error: expect(received).toEqual(expected) // deep equality
Expected: [0, 0, 20, 6, 0, 0, 21, 10, 5, 0, …]
Received: serializes to the same string
<Click to see difference>
@@ -377,3 +524,8 @@ function createModelMockForExpression(expression: string) { | |||
getLinesContent: jest.fn().mockReturnValue(expression.split("\n")), | |||
}; | |||
} | |||
|
|||
function getDmnModelFromFilePath(filePath: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jomarko @tiagobento Changes applied! Ready for you. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @danielzhe
Closes: #2549
It closes the ticket related to the colorize and autocomplete only.
ds-fix.mp4