Skip to content

Commit cfc5857

Browse files
committed
testing codeSnippetEditor
1 parent 8eb8277 commit cfc5857

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

test/codeSnippetEditor.test.tsx

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// start testing code snippet editor
2+
// need to include functions
3+
4+
import React from 'react';
5+
import renderer from 'react-test-renderer';
6+
import { shallow } from 'enzyme';
7+
8+
import { CodeSnippetEditor } from '../src/CodeSnippetEditor';
9+
// import { CodeSnippetDisplay } from '../src/CodeSnippetDisplay';
10+
import { CodeSnippetEditorTags } from '../src/CodeSnippetEditorTags';
11+
// import { Link } from '../src/Link';
12+
13+
14+
interface ICodeSnippetEditorTagProps {
15+
selectedTags: string[];
16+
tags: string[];
17+
handleChange: (selectedTags: string[], allTags: string[]) => void;
18+
};
19+
20+
interface ICodeSnippetEditorTagState {
21+
selectedTags: string[];
22+
tags: string[];
23+
plusIconShouldHide: boolean;
24+
addingNewTag: boolean;
25+
};
26+
27+
describe('jupyterlab/codeSnippetEditor', () => {
28+
29+
})

0 commit comments

Comments
 (0)