-
Notifications
You must be signed in to change notification settings - Fork 2
Implement transformations #92
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
Conversation
|
⏭️ No files to mutate for |
|
⏭️ No files to mutate for |
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🟢 | Statements | 100% | 0/0 |
| 🟢 | Branches | 100% | 0/0 |
| 🟢 | Functions | 100% | 0/0 |
| 🟢 | Lines | 100% | 0/0 |
Test suite run success
1 tests passing in 1 suite.
Report generated by 🧪jest coverage report action from 5038553
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🟢 | Statements | 96.05% (-0.69% 🔻) |
802/835 |
| 🟢 | Branches | 96% (-2.18% 🔻) |
216/225 |
| 🟢 | Functions | 87.39% (-0.69% 🔻) |
194/222 |
| 🟢 | Lines | 95.91% (-0.72% 🔻) |
773/806 |
Show files with reduced coverage 🔻
St.❔ |
File | Statements | Branches | Functions | Lines |
|---|---|---|---|---|---|
| 🟢 | ... / index.ts |
92.31% (-5.31% 🔻) |
66.67% (-20.83% 🔻) |
96.43% (-3.57% 🔻) |
92.22% (-5.4% 🔻) |
| 🔴 | EditorJSModel.ts | 35% (-0.9% 🔻) |
0% | 11.11% (-0.43% 🔻) |
35% (-0.9% 🔻) |
Test suite run success
405 tests passing in 24 suites.
Report generated by 🧪jest coverage report action from 5038553
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🟢 | Statements | 98% (-2% 🔻) |
98/100 |
| 🟢 | Branches | 95% (-5% 🔻) |
38/40 |
| 🟢 | Functions | 100% | 11/11 |
| 🟢 | Lines | 98% (-2% 🔻) |
98/100 |
Show new covered files 🐣
St.❔ |
File | Statements | Branches | Functions | Lines |
|---|---|---|---|---|---|
| 🟢 | Operation.ts | 100% | 100% | 100% | 100% |
| 🟢 | UndoRedoManager.ts | 100% | 100% | 100% | 100% |
| 🟢 | CollaborationManager.ts | 95.35% | 86.67% | 100% | 95.35% |
Test suite run success
51 tests passing in 3 suites.
Report generated by 🧪jest coverage report action from 5038553
| case (e instanceof TextFormattedEvent): | ||
| operation = new Operation(OperationType.Modify, e.detail.index, { | ||
| payload: e.detail.data, | ||
| prevPayload: undefined, |
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.
maybe null?
| expect(() => receivedOp.transform(localOp)).toThrow('Unsupported operation type'); | ||
| }); | ||
|
|
||
| it('should not transform relative the Modify operation', () => { |
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.
unclear test case name
| * Previous payload for undo/redo purposes | ||
| */ | ||
| newValue: string; | ||
| prevPayload?: T; |
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.
T | null ?
| } | ||
|
|
||
| /** | ||
| * Checks if operation needs to be transformed |
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.
Describe the cases, when it should be transformed
Transformerclass to theOperationclass