File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed
Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ node_modules
33.vscode
44lib
55dist
6- coverage
6+ coverage
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { mount } from 'enzyme' ;
33import sinon from 'sinon' ;
4- import ImageKitComponent from " ../../src/ components/ImageKitComponent" ;
5- import IKContext from '../../src/ components/IKContext' ;
6- import IKUpload from '../../src/ components/IKUpload' ;
4+ import ImageKitComponent from ' ../components/ImageKitComponent' ;
5+ import IKContext from '../components/IKContext' ;
6+ import IKUpload from '../components/IKUpload' ;
77
88const publicKey = 'test_public_key' ;
99const urlEndpoint = 'http://ik.imagekit.io/test_url_endpoint' ;
Original file line number Diff line number Diff line change 1+ import React from 'react'
2+ import { shallow } from 'enzyme' ;
3+ import ImageKitComponent from '../components/ImageKitComponent' ;
4+
5+ describe ( 'ImageKitComponent' , ( ) => {
6+ describe ( 'Snapshots' , ( ) => {
7+ test ( 'should render null' , ( ) => {
8+ const imagekitComponent = shallow (
9+ < ImageKitComponent />
10+ ) ;
11+ // renders: null
12+ expect ( imagekitComponent . html ( ) ) . toEqual ( null ) ;
13+ } ) ;
14+ } ) ;
15+ } ) ;
You can’t perform that action at this time.
0 commit comments