-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
9 changed files
with
79 additions
and
20 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,5 @@ | ||
/** | ||
* Created by invader on 18.10.16. | ||
*/ | ||
|
||
module.exports = 'test-file-stub'; |
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,5 @@ | ||
/** | ||
* Created by invader on 18.10.16. | ||
*/ | ||
|
||
module.exports = {}; |
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
File renamed without changes.
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
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
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
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,35 @@ | ||
/** | ||
* Created by invader on 18.10.16. | ||
*/ | ||
|
||
import React from 'react' | ||
import configureStore from 'redux-mock-store' | ||
import jest from 'jest' | ||
import { mount, shallow, ShallowWrapper } from 'enzyme' | ||
import ConnectedMain, { Main } from '../Main' | ||
|
||
const mockStore = configureStore(); | ||
|
||
function setup() { | ||
const props = { | ||
isAuthenticated: false, | ||
payload: { | ||
sub: '', | ||
role: '' | ||
} | ||
}; | ||
|
||
const enzymeWrapper = shallow(<Main {...props} />); | ||
|
||
return { props, enzymeWrapper } | ||
} | ||
|
||
describe('Main container', () => { | ||
describe('descr', () => { | ||
const { enzymeWrapper } = setup(); | ||
|
||
it('Should render self and subcomponents', () => { | ||
expect(enzymeWrapper.find('div').isEmpty()).toBe(false) | ||
}); | ||
}); | ||
}); |
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