Skip to content

Commit

Permalink
removed: unwanted curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
disha1202 committed Jan 27, 2024
1 parent 96e3128 commit d6d5e71
Show file tree
Hide file tree
Showing 3 changed files with 97 additions and 119 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,16 @@ describe('Testing Advertisement Entry Component', () => {
<Provider store={store}>
<BrowserRouter>
<I18nextProvider i18n={i18nForTest}>
{
<AdvertisementEntry
endDate={new Date()}
startDate={new Date()}
id="1"
key={1}
mediaUrl="data:videos"
name="Advert1"
organizationId="1"
type="POPUP"
/>
}
<AdvertisementEntry
endDate={new Date()}
startDate={new Date()}
id="1"
key={1}
mediaUrl="data:videos"
name="Advert1"
organizationId="1"
type="POPUP"
/>
</I18nextProvider>
</BrowserRouter>
</Provider>
Expand Down Expand Up @@ -191,17 +189,15 @@ describe('Testing Advertisement Entry Component', () => {
<Provider store={store}>
<BrowserRouter>
<I18nextProvider i18n={i18nForTest}>
{
<AdvertisementEntry
endDate={new Date()}
startDate={new Date()}
type="POPUP"
name="Advert1"
organizationId="1"
mediaUrl=""
id="1"
/>
}
<AdvertisementEntry
endDate={new Date()}
startDate={new Date()}
type="POPUP"
name="Advert1"
organizationId="1"
mediaUrl=""
id="1"
/>
</I18nextProvider>
</BrowserRouter>
</Provider>
Expand Down Expand Up @@ -262,17 +258,15 @@ describe('Testing Advertisement Entry Component', () => {
<Provider store={store}>
<BrowserRouter>
<I18nextProvider i18n={i18nForTest}>
{
<AdvertisementEntry
endDate={new Date()}
startDate={new Date()}
type="POPUP"
name="Advert1"
organizationId="1"
mediaUrl=""
id="1"
/>
}
<AdvertisementEntry
endDate={new Date()}
startDate={new Date()}
type="POPUP"
name="Advert1"
organizationId="1"
mediaUrl=""
id="1"
/>
</I18nextProvider>
</BrowserRouter>
</Provider>
Expand Down Expand Up @@ -317,18 +311,16 @@ describe('Testing Advertisement Entry Component', () => {
<Provider store={store}>
<BrowserRouter>
<I18nextProvider i18n={i18nForTest}>
{
<AdvertisementRegister
formStatus="edit"
idEdit="-100"
nameEdit="Updated"
endDateEdit={new Date()}
startDateEdit={new Date()}
typeEdit="POPUP"
organizationId="1"
advertisementMediaEdit=""
/>
}
<AdvertisementRegister
formStatus="edit"
idEdit="-100"
nameEdit="Updated"
endDateEdit={new Date()}
startDateEdit={new Date()}
typeEdit="POPUP"
organizationId="1"
advertisementMediaEdit=""
/>
</I18nextProvider>
</BrowserRouter>
</Provider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,14 @@ describe('Testing Advertisement Register Component', () => {
<Provider store={store}>
<BrowserRouter>
<I18nextProvider i18n={i18n}>
{
<AdvertisementRegister
endDate={new Date()}
startDate={new Date()}
type="BANNER"
name="Advert1"
organizationId="1"
advertisementMedia="test.png"
/>
}
<AdvertisementRegister
endDate={new Date()}
startDate={new Date()}
type="BANNER"
name="Advert1"
organizationId="1"
advertisementMedia="test.png"
/>
</I18nextProvider>
</BrowserRouter>
</Provider>
Expand All @@ -128,17 +126,15 @@ describe('Testing Advertisement Register Component', () => {
<Provider store={store}>
<BrowserRouter>
<I18nextProvider i18n={i18n}>
{
<AdvertisementRegister
endDate={new Date()}
startDate={new Date()}
type="BANNER"
name="Advert1"
organizationId="1"
advertisementMedia="google.com"
formStatus="edit"
/>
}
<AdvertisementRegister
endDate={new Date()}
startDate={new Date()}
type="BANNER"
name="Advert1"
organizationId="1"
advertisementMedia="google.com"
formStatus="edit"
/>
</I18nextProvider>
</BrowserRouter>
</Provider>
Expand All @@ -155,16 +151,14 @@ describe('Testing Advertisement Register Component', () => {
<Provider store={store}>
<BrowserRouter>
<I18nextProvider i18n={i18n}>
{
<AdvertisementRegister
endDate={new Date()}
startDate={new Date()}
type="BANNER"
name="Advert1"
organizationId="1"
advertisementMedia="test.png"
/>
}
<AdvertisementRegister
endDate={new Date()}
startDate={new Date()}
type="BANNER"
name="Advert1"
organizationId="1"
advertisementMedia="test.png"
/>
</I18nextProvider>
</BrowserRouter>
</Provider>
Expand All @@ -187,16 +181,14 @@ describe('Testing Advertisement Register Component', () => {
<Provider store={store}>
<BrowserRouter>
<I18nextProvider i18n={i18n}>
{
<AdvertisementRegister
endDate={new Date()}
startDate={new Date()}
type="BANNER"
name="Advert1"
organizationId="1"
advertisementMedia=""
/>
}
<AdvertisementRegister
endDate={new Date()}
startDate={new Date()}
type="BANNER"
name="Advert1"
organizationId="1"
advertisementMedia=""
/>
</I18nextProvider>
</BrowserRouter>
</Provider>
Expand Down Expand Up @@ -262,17 +254,15 @@ describe('Testing Advertisement Register Component', () => {
<Provider store={store}>
<BrowserRouter>
<I18nextProvider i18n={i18n}>
{
<AdvertisementEntry
endDate={new Date()}
startDate={new Date()}
type="POPUP"
name="Advert1"
organizationId="1"
mediaUrl=""
id="1"
/>
}
<AdvertisementEntry
endDate={new Date()}
startDate={new Date()}
type="POPUP"
name="Advert1"
organizationId="1"
mediaUrl=""
id="1"
/>
</I18nextProvider>
</BrowserRouter>
</Provider>
Expand Down Expand Up @@ -335,16 +325,14 @@ describe('Testing Advertisement Register Component', () => {
<Provider store={store}>
<BrowserRouter>
<I18nextProvider i18n={i18n}>
{
<AdvertisementRegister
endDateEdit={new Date()}
startDateEdit={new Date()}
typeEdit="BANNER"
nameEdit="Advert1"
orgIdEdit="1"
advertisementMediaEdit="google.com"
/>
}
<AdvertisementRegister
endDateEdit={new Date()}
startDateEdit={new Date()}
typeEdit="BANNER"
nameEdit="Advert1"
orgIdEdit="1"
advertisementMediaEdit="google.com"
/>
</I18nextProvider>
</BrowserRouter>
</Provider>
Expand All @@ -368,16 +356,14 @@ describe('Testing Advertisement Register Component', () => {
<Provider store={store}>
<BrowserRouter>
<I18nextProvider i18n={i18n}>
{
<AdvertisementRegister
endDate={new Date()}
startDate={new Date()}
type="BANNER"
name="Advert1"
organizationId="1"
advertisementMedia="test.mp4"
/>
}
<AdvertisementRegister
endDate={new Date()}
startDate={new Date()}
type="BANNER"
name="Advert1"
organizationId="1"
advertisementMedia="test.mp4"
/>
</I18nextProvider>
</BrowserRouter>
</Provider>
Expand Down
2 changes: 1 addition & 1 deletion src/components/UserPortal/PromotedPost/PromotedPost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function promotedPost(
<Card.Body>
<Card.Title>{props.title}</Card.Title>
<Card.Text>{props.title}</Card.Text>
{props.media?.includes('data:video') ? (
{props.media?.includes('videos') ? (
<video
muted
className={styles.admedia}
Expand Down

0 comments on commit d6d5e71

Please sign in to comment.