Skip to content

Commit 243cda1

Browse files
committed
pulled from luke testing branch
2 parents 1887bf4 + 6363613 commit 243cda1

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

__tests__/enzyme.test.tsx

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,28 @@ describe('Test the BottomTabs component', () => {
5858
});
5959
});
6060

61-
describe('Test All 10 default HTML elements have rendered', () => {
61+
describe('Test HTMLPanel Component', () => {
6262
const target = shallow(
6363
<DndProvider backend={HTML5Backend}>
6464
<StateContext.Provider value={initialState}>
6565
<HTMLPanel />
6666
</StateContext.Provider>
6767
</DndProvider>
6868
);
69-
// comment out snapshot test because we modified UI intentionally
69+
70+
const props = {
71+
name: 'abc',
72+
key:'html-abc',
73+
id:1,
74+
Icon:'icon',
75+
handleDelete: jest.fn()
76+
};
77+
7078
it('Matches snapshot', () => {
7179
expect(target).toMatchSnapshot();
7280
});
81+
it('Should render HTMLItem', () => {
82+
expect(target.find(<HTMLItem {...props} />)).toBeDefined();
7383
});
7484

7585
// testing for AppContainer
@@ -131,3 +141,12 @@ describe('Test NavBar component', () => {
131141
});
132142
});
133143

144+
describe('Test LeftContainer container', () => {
145+
const target = shallow(<LeftContainer />);
146+
147+
it('Should render HTMLPanel', () => {
148+
expect(target.find(<HTMLPanel />)).toBeDefined();
149+
});
150+
});
151+
152+

app/src/helperFunctions/generateCode.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ const formatCode = (code: string) => {
283283
// } else {
284284
// return window.api.formatCode(code);
285285
// }
286+
<<<<<<< HEAD
287+
=======
288+
289+
>>>>>>> 63636136af04d0e7331ea9149f07a11672488847
286290
return code;
287291

288292
};

0 commit comments

Comments
 (0)