parent
3a58d2b186
commit
1b9746a0b5
@ -1,30 +0,0 @@
|
||||
export default class Profil {
|
||||
private _name: string;
|
||||
private _avatar: string;
|
||||
private _allergy: string[];
|
||||
private _diets: string[];
|
||||
|
||||
constructor( name: string, avatar: string, allergy: string[], diets: string[]) {
|
||||
this._name = name;
|
||||
this._avatar = avatar;
|
||||
this._allergy = allergy;
|
||||
this._diets = diets;
|
||||
}
|
||||
|
||||
get name(): string {
|
||||
return this._name;
|
||||
}
|
||||
|
||||
|
||||
get avatar(): string{
|
||||
return this._avatar;
|
||||
}
|
||||
|
||||
get allergy(): string[]{
|
||||
return this._allergy;
|
||||
}
|
||||
|
||||
get diets(): string[]{
|
||||
return this._diets;
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
import IngredientService from '../Services/Ingredients/IngredientsServices';
|
||||
|
||||
describe('IngredientService', () => {
|
||||
const ingredient_service = new IngredientService();
|
||||
|
||||
it('should get one ingredient', async () => {
|
||||
const ingredient_service = new IngredientService();
|
||||
const result = await ingredient_service.getIngredientById(1)
|
||||
expect(result.id).toBe(1);
|
||||
});
|
||||
});
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue