Skip to content

Commit

Permalink
[TRELLO-2516] Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
charlescd committed Aug 23, 2024
1 parent f2b2ff2 commit a42f4c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions mobile-tools/src/app.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import request from 'supertest'
import {app} from './app'
import {Category} from './services/categories.service'
import {Config} from './config/config'

describe('Test the actus path', () => {
test('It should response the GET method', async () => {
Expand All @@ -22,6 +23,8 @@ describe('Test the categories path', () => {
category: 'AchatMagasin',
description: 'Prix, promotion, qualité, poids, garantie, …',
id: '10',
path: 'achat-magasin',
img: `${Config.websiteUrl}/image/pictos/category-store.png`,
})
})
test('It should return french categories', async () => {
Expand All @@ -31,6 +34,8 @@ describe('Test the categories path', () => {
category: 'AchatMagasin',
description: 'Prix, promotion, qualité, poids, garantie, …',
id: '10',
path: 'achat-magasin',
img: `${Config.websiteUrl}/image/pictos/category-store.png`,
})
})
test('It should return english categories', async () => {
Expand All @@ -40,6 +45,8 @@ describe('Test the categories path', () => {
category: 'AchatMagasin',
description: 'Price, promotion, quality, weight, warranty, etc.',
id: '10',
path: 'achat-magasin',
img: `${Config.websiteUrl}/image/pictos/category-store.png`,
})
})
})
2 changes: 2 additions & 0 deletions mobile-tools/src/services/categories.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ const categoriesEn: Category[] = anomaliesEn.map((anomaly: any) => {
category: anomaly.category,
description: anomaly.description,
id: anomaly.id,
path: anomaly.path,
img: `${Config.websiteUrl}/image/pictos/${anomaly.img}.png`,
}
})

Expand Down

0 comments on commit a42f4c7

Please sign in to comment.