This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lint): lints some files, adds new rules
- Loading branch information
Stefano Casasola
committed
Nov 8, 2019
1 parent
c584b54
commit d46fa35
Showing
4 changed files
with
27 additions
and
25 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
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
import * as React from 'react' | ||
import { shallow } from 'enzyme' | ||
import { Modal } from '../src' | ||
import BootstrapModal from 'react-bootstrap/Modal' | ||
import { Modal } from '../src' | ||
|
||
describe('Modal', () => { | ||
it('Modal renders itself without crashing', () => { | ||
const modalWrapper = shallow(<Modal show={true} toggle={() => {}} />) | ||
const modalWrapper = shallow(<Modal show toggle={() => {}} />) | ||
expect(modalWrapper.find(BootstrapModal)).toHaveLength(1) | ||
}) | ||
}) |