Skip to content

Commit accb2e0

Browse files
committed
continue working on test for masterTree, next step is timeJump
1 parent d55394e commit accb2e0

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

src/backend/__tests__/masterTree.test.tsx

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import {
2828
} from '../models/filterConditions';
2929
import deepCopy from './ignore/deepCopy';
3030
import { Children } from 'react';
31+
import _ from 'lodash';
3132

3233
describe('master tree tests', () => {
3334
let treeRoot: Tree;
@@ -421,20 +422,7 @@ describe('master tree tests', () => {
421422
});
422423

423424
describe('Replace fromLinkFiber class value', () => {
424-
xit('NEED UNDERSTANDING THE PURPOSE OF FROMLINKFIBER FOR FRONTEND, testing below is just to ensure functionality is working', () => {});
425-
describe('should update linkFiber information as applicable', () => {
426-
it('should add LinkFiber if there is no classlist', () => {
427-
// Construct Fiber Node (root => childNode)
428-
mockChildNode.stateNode.setAttribute = jest.fn;
429-
mockChildNode.stateNode.classList = [];
430-
const tree = createTree(mockChildNode);
431-
432-
// Construct Result Tree (root => childTree)
433-
treeRoot.children.push(mockChildTree);
434-
// Compare the two trees:
435-
expect(tree).toEqual(treeRoot);
436-
});
437-
});
425+
xit('NEED UNDERSTANDING THE PURPOSE OF FROMLINKFIBER FOR FRONTEND, currently unable to replicate DOMTokenList instance', () => {});
438426
});
439427
});
440428

@@ -545,7 +533,7 @@ describe('master tree tests', () => {
545533
});
546534
});
547535

548-
describe('createComponentActionsRecord', () => {
536+
describe('createComponentActionsRecord unit test', () => {
549537
it('should save a new component action record if the Fiber node is a stateful class component', () => {
550538
mockFiberNode.tag = ClassComponent;
551539
mockFiberNode.stateNode = {

0 commit comments

Comments
 (0)