forked from open-source-labs/SeeQR
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6f6124
commit 3004a55
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import * as React from "react"; | ||
import * as renderer from "react-test-renderer"; | ||
import { Compare } from "../frontend/components//leftPanel/Compare"; | ||
import { shallow } from "enzyme"; | ||
import { stringify } from "querystring"; | ||
|
||
describe ("Comparison feature tests", () => { | ||
// wrapper will be assigned the evaluation of the shallow render | ||
let wrapper; | ||
|
||
const props = { | ||
queries: [], | ||
currentSchema: '', | ||
|
||
} | ||
// shallow render the component before running tests | ||
beforeAll(() => { | ||
wrapper = shallow(<Compare {...props}/>) | ||
}) | ||
|
||
it('Should render a div', () => { | ||
expect(wrapper.type()).toEqual('div'); | ||
}) | ||
|
||
it('Should render h3 tag', () => { | ||
expect(wrapper.containsMatchingElement( | ||
<h3>Comparisons</h3>)).toBeTruthy(); | ||
}) | ||
|
||
it('Should render query label', () => { | ||
expect(wrapper.containsMatchingElement( | ||
<td>{'Query Label'}</td>)).toBeTruthy(); | ||
}) | ||
|
||
|
||
|
||
|
||
|
||
}) |