/** * External dependencies */ import TestRenderer from 'react-test-renderer'; /** * Internal dependencies */ import withCategory from '../with-category'; import * as mockUtils from '../../components/utils'; import * as mockBaseUtils from '../../base/utils/errors'; jest.mock( '../../components/utils', () => ( { getCategory: jest.fn(), } ) ); jest.mock( '../../base/utils/errors', () => ( { formatError: jest.fn(), } ) ); const mockCategory = { name: 'Clothing' }; const attributes = { categoryId: 1 }; const TestComponent = withCategory( ( props ) => { return (
); } ); const render = () => { return TestRenderer.create( ); }; describe( 'withCategory Component', () => { let renderer; afterEach( () => { mockUtils.getCategory.mockReset(); } ); describe( 'lifecycle events', () => { beforeEach( () => { mockUtils.getCategory.mockImplementation( () => Promise.resolve() ); renderer = render(); } ); it( 'getCategory is called on mount with passed in category id', () => { const { getCategory } = mockUtils; expect( getCategory ).toHaveBeenCalledWith( attributes.categoryId ); expect( getCategory ).toHaveBeenCalledTimes( 1 ); } ); it( 'getCategory is called on component update', () => { const { getCategory } = mockUtils; const newAttributes = { ...attributes, categoryId: 2 }; renderer.update( ); expect( getCategory ).toHaveBeenNthCalledWith( 2, newAttributes.categoryId ); expect( getCategory ).toHaveBeenCalledTimes( 2 ); } ); it( 'getCategory is hooked to the prop', () => { const { getCategory } = mockUtils; const props = renderer.root.findByType( 'div' ).props; props.getCategory(); expect( getCategory ).toHaveBeenCalledTimes( 2 ); } ); } ); describe( 'when the API returns category data', () => { beforeEach( () => { mockUtils.getCategory.mockImplementation( ( categoryId ) => Promise.resolve( { ...mockCategory, id: categoryId } ) ); renderer = render(); } ); it( 'sets the category props', () => { const props = renderer.root.findByType( 'div' ).props; expect( props.error ).toBeNull(); expect( typeof props.getCategory ).toBe( 'function' ); expect( props.isLoading ).toBe( false ); expect( props.category ).toEqual( { ...mockCategory, id: attributes.categoryId, } ); } ); } ); describe( 'when the API returns an error', () => { const error = { message: 'There was an error.' }; const getCategoryPromise = Promise.reject( error ); const formattedError = { message: 'There was an error.', type: 'api' }; beforeEach( () => { mockUtils.getCategory.mockImplementation( () => getCategoryPromise ); mockBaseUtils.formatError.mockImplementation( () => formattedError ); renderer = render(); } ); it( 'sets the error prop', ( done ) => { const { formatError } = mockBaseUtils; getCategoryPromise.catch( () => { const props = renderer.root.findByType( 'div' ).props; expect( formatError ).toHaveBeenCalledWith( error ); expect( formatError ).toHaveBeenCalledTimes( 1 ); expect( props.error ).toEqual( formattedError ); expect( typeof props.getCategory ).toBe( 'function' ); expect( props.isLoading ).toBe( false ); expect( props.category ).toBeNull(); done(); } ); } ); } ); } ); 1000th Match IPL 2023: सेलिब्रेशन के लिए BCCI ने बनाया यह खास प्लान 30 अप्रैल को IPL भरेगा अपनी 1000वी उड़ान – HOW TO CRIC

1000th Match IPL 2023: सेलिब्रेशन के लिए BCCI ने बनाया यह खास प्लान 30 अप्रैल को IPL भरेगा अपनी 1000वी उड़ान

1000th Match IPL 2023: सेलिब्रेशन के लिए BCCI ने बनाया यह खास प्लान 30 अप्रैल को IPL भरेगा अपनी 1000वी उड़ान

1000th Match IPL 2023: Mumbai Indians VS Rajasthan Royals इंडियन प्रीमियर लीग (IPL) की शुरुआत साल 2008 में हुई थी| इस लीग में अब तक कुल 15 सीजन खेले जा चुके हैं| इस वक्त IPL का 16वा सीजन बड़े ही रोमांचक तरीके से खेला जा रहा है| इस बार 2023 का आईपीएल मैच बहुत ही खास होने वाला है

1000th Match IPL 2023 मुंबई इंडियंस (MI) vs राजस्थान रॉयल्स (RR) इंडियन प्रीमियर लीग की शुरुआत साल 2008 में हुई थी| इस लीग में अब तक कुल 15 सीजन खेले जा चुके हैं| इस वक्त आईपीएल का सोलवा सीजन बड़े ही आनंद में और रोमांचक तरह से खेला जा रहा है| दुनिया की सबसे बड़ी लीग में कई युवा खिलाड़ियों को अपना टैलेंट दिखाते हुए खास मुकाम हासिल करते हुए देखा जा रहा है, तो वही फैंस भी इस लीग को काफी पसंद कर रहे हैं

IPL 2023 का यह रोमांचक मैच बहुत ही शानदार से फैंस बड़े आनंद में हो कर देख रहे हैं| क्रिकेट प्रेमियों को हम बता दें कि 30 अप्रैल 2023 को खेले जाने वाले मुकाबला आईपीएल इतिहास के लिए बहुत ही खास होने वाला है| यह लीग का 1000 वां मैच होगा| इस खास मौके को सेलिब्रेशन करने के लिए BCCI ने एक स्पेशल प्लानिंग की है, आइए जानते हैं वह स्पेशल प्लानिंग क्या है?

आईपीएल 2023 का 1000 वां मैच किस दिन खेला जाएगा?

इंडियन प्रीमियर लीग (IPL) का 1000वा का मैच मुंबई इंडियंस और राजस्थान रॉयल के बीच खेला जाएगा| मुंबई इंडियंस इसलिए की सबसे सफल टीम है| जिन्होंने साल 2012, 2015, 2017, 2019, 2020 में IPL का खिताब अपने नाम किया था| वहीं पिछले साल राजस्थान रॉयल ने फाइनल तक का सफर तय किया था| जिसमें गुजरात टाइटंस (GT) ने बाजी मारते हुए IPL का खिताब अपने नाम कर लिया था| डेब्यू सीजन में ही हासिल किया इन दोनों टीमों के बीच खेले जाने वाले मुकाबला आईपीएल इतिहास के लिए बेहद खास होने वाला है| जिसका आयोजन मुंबई के वानखेड़े स्टेडियम में होगा

ऐसे में आईपीएल के इस खास माइलस्टोन को सेलिब्रेट करने के लिए बीसीसीआई ने तैयारी जोरों शोरों से शुरू कर दी है| इंडियन एक्सप्रेस की एक नई रिपोर्ट के मुताबिक BCCI ने आईपीएल के 1000 में मैच को सेलिब्रेट करने के लिए एक ग्रैंड सेलिब्रेशन इवेंट का प्लान बनाया है| जिसका contract बीसीसीआई ने एक इवेंट कंपनी को दिया है| यह दिन मुंबई इंडियंस के कप्तान रोहित शर्मा के लिए बहुत खास दिन होने वाला है

यह दिन मुंबई इंडियंस के कप्तान रोहित शर्मा के लिए भी बहुत ही स्पेशल है| इस मैदान में घरेलू क्रिकेट खेलने वाले Rohit Sharma का उस दिन जन्मदिन भी है| रोहित के जन्मदिन के लिए हैदराबाद में 60 फीट कटआउट का उद्घाटन किया जाएगा| जिसकी तस्वीर सोशल मीडिया पर वायरल हो रही है

READ MORE :-

DC vs SRH Dream 11 Fantasy Team today IPL 2023-Dream Team

2 thoughts on “1000th Match IPL 2023: सेलिब्रेशन के लिए BCCI ने बनाया यह खास प्लान 30 अप्रैल को IPL भरेगा अपनी 1000वी उड़ान”

  1. Pingback: LSG vs PBKS Match Review IPL 2023

  2. Pingback: DC vs SRH Dream 11 Fantasy Team today

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top