summaryrefslogtreecommitdiffstats
path: root/test/generic-components/treeNode/TreeNode.test.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/generic-components/treeNode/TreeNode.test.js')
-rw-r--r--test/generic-components/treeNode/TreeNode.test.js41
1 files changed, 0 insertions, 41 deletions
diff --git a/test/generic-components/treeNode/TreeNode.test.js b/test/generic-components/treeNode/TreeNode.test.js
deleted file mode 100644
index 1c669e6..0000000
--- a/test/generic-components/treeNode/TreeNode.test.js
+++ /dev/null
@@ -1,41 +0,0 @@
-import TreeNode from 'generic-components/treeNode/TreeNode';
-import React from 'react';
-import { mount } from 'enzyme';
-
-describe('TreeNode', () => {
- let treeNode;
-
- beforeEach(() => {
- treeNode = mount(<TreeNode node={{title: 'AAA'}}/>).instance();
- });
-
-
- it('Should be invisible when created', () => {
- // then
- expect(treeNode.state['visible']).toEqual(false)
- });
-
- it('Should be visible when toggled', () => {
- // given
- expect(treeNode.state['visible']).toEqual(false)
-
- // when
- treeNode.toggle();
-
- // then
- expect(treeNode.state['visible']).toEqual(true)
- });
-
- it('Should be invisible when double toggled', () => {
- // given
- expect(treeNode.state['visible']).toEqual(false);
-
- // when
- treeNode.toggle();
- treeNode.toggle();
-
- // then
- expect(treeNode.state['visible']).toEqual(false);
- });
-
-});