Skip to content

Commit cde8023

Browse files
committed
test: ✅ rename tests
1 parent 3879d0a commit cde8023

File tree

216 files changed

+572
-572
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

216 files changed

+572
-572
lines changed

apps/101-meal-planner-solution/src/app/meal-planner/meal-planner.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { recipeMother } from '../testing/recipe.mother';
33
import { MealPlanner } from './meal-planner';
44

55
describe(MealPlanner.name, () => {
6-
it('should add recipe', () => {
6+
it('adds recipes', () => {
77
const { mealPlanner, burger, salad } = createMealPlanner();
88

99
mealPlanner.addRecipe(burger);
@@ -15,19 +15,19 @@ describe(MealPlanner.name, () => {
1515
]);
1616
});
1717

18-
it('should not allow recipe duplicates', () => {
18+
it('does not allow recipe duplicates', () => {
1919
const { mealPlanner, burgerDuplicate } = createMealPlannerWithBurger();
2020

2121
expect(mealPlanner.canAddRecipe(burgerDuplicate)).toBe(false);
2222
});
2323

24-
it('should allow new recipes', () => {
24+
it('allows new recipes', () => {
2525
const { mealPlanner, salad } = createMealPlannerWithBurger();
2626

2727
expect(mealPlanner.canAddRecipe(salad)).toBe(true);
2828
});
2929

30-
it('should throw error if recipe is already present', () => {
30+
it('throws error if recipe is already present', () => {
3131
const { mealPlanner, burgerDuplicate } = createMealPlannerWithBurger();
3232

3333
expect(() => mealPlanner.addRecipe(burgerDuplicate)).toThrow(

apps/102-meal-planner-reactive-solution/src/app/meal-planner/meal-planner.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { recipeMother } from '../testing/recipe.mother';
44
import { MealPlanner } from './meal-planner';
55

66
describe(MealPlanner.name, () => {
7-
it('should add recipe', () => {
7+
it('adds recipes', () => {
88
const { mealPlanner, burger, salad } = createMealPlanner();
99

1010
mealPlanner.addRecipe(burger);
@@ -16,19 +16,19 @@ describe(MealPlanner.name, () => {
1616
]);
1717
});
1818

19-
it('should not allow recipe duplicates', () => {
19+
it('does not allow recipe duplicates', () => {
2020
const { mealPlanner, burgerDuplicate } = createMealPlannerWithBurger();
2121

2222
expect(mealPlanner.canAddRecipe(burgerDuplicate)).toBe(false);
2323
});
2424

25-
it('should allow new recipes', () => {
25+
it('allows new recipes', () => {
2626
const { mealPlanner, salad } = createMealPlannerWithBurger();
2727

2828
expect(mealPlanner.canAddRecipe(salad)).toBe(true);
2929
});
3030

31-
it('should throw error if recipe is already present', () => {
31+
it('throws error if recipe is already present', () => {
3232
const { mealPlanner, burgerDuplicate } = createMealPlannerWithBurger();
3333

3434
expect(() => mealPlanner.addRecipe(burgerDuplicate)).toThrow(
@@ -37,7 +37,7 @@ describe(MealPlanner.name, () => {
3737
});
3838

3939
describe('recipes$', () => {
40-
it('should emit empty array when no recipes', async () => {
40+
it('emits empty array when no recipes', async () => {
4141
const { mealPlanner } = createMealPlanner();
4242

4343
using observer = observe(mealPlanner.recipes$);
@@ -46,7 +46,7 @@ describe(MealPlanner.name, () => {
4646
expect(observer.next).toHaveBeenCalledWith([]);
4747
});
4848

49-
it('should emit recipes when added', () => {
49+
it('emits recipes when added', () => {
5050
const { mealPlanner, burger, salad } = createMealPlanner();
5151

5252
using observer = observe(mealPlanner.recipes$);
@@ -68,7 +68,7 @@ describe(MealPlanner.name, () => {
6868
});
6969

7070
describe('watchCanAddRecipe()', () => {
71-
it('should instantly emit if recipe can be added', () => {
71+
it('emits instantly if recipe can be added', () => {
7272
const { mealPlanner, burger } = createMealPlanner();
7373

7474
using observer = observe(mealPlanner.watchCanAddRecipe(burger));

apps/102-meal-planner-reactive-starter/src/app/meal-planner/meal-planner.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { recipeMother } from '../testing/recipe.mother';
33
import { MealPlanner } from './meal-planner';
44

55
describe(MealPlanner.name, () => {
6-
it('should add recipe', () => {
6+
it('adds recipes', () => {
77
const { mealPlanner, burger, salad } = createMealPlanner();
88

99
mealPlanner.addRecipe(burger);
@@ -15,19 +15,19 @@ describe(MealPlanner.name, () => {
1515
]);
1616
});
1717

18-
it('should not allow recipe duplicates', () => {
18+
it('does not allow recipe duplicates', () => {
1919
const { mealPlanner, burgerDuplicate } = createMealPlannerWithBurger();
2020

2121
expect(mealPlanner.canAddRecipe(burgerDuplicate)).toBe(false);
2222
});
2323

24-
it('should allow new recipes', () => {
24+
it('allows new recipes', () => {
2525
const { mealPlanner, salad } = createMealPlannerWithBurger();
2626

2727
expect(mealPlanner.canAddRecipe(salad)).toBe(true);
2828
});
2929

30-
it('should throw error if recipe is already present', () => {
30+
it('throws error if recipe is already present', () => {
3131
const { mealPlanner, burgerDuplicate } = createMealPlannerWithBurger();
3232

3333
expect(() => mealPlanner.addRecipe(burgerDuplicate)).toThrow(

apps/201-meal-planner-indirect-output-solution/src/app/meal-planner/meal-planner.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
} from './meal-repository.fake';
1010

1111
describe(MealPlanner.name, () => {
12-
it('should add recipe', async () => {
12+
it('adds recipes', async () => {
1313
const { mealPlanner, burger, salad } = createMealPlanner();
1414

1515
mealPlanner.addRecipe(burger);
@@ -21,15 +21,15 @@ describe(MealPlanner.name, () => {
2121
]);
2222
});
2323

24-
it('should throw error if recipe is already present', () => {
24+
it('throws error if recipe is already present', () => {
2525
const { mealPlanner, burgerDuplicate } = createMealPlannerWithBurger();
2626

2727
expect(() => mealPlanner.addRecipe(burgerDuplicate)).toThrow(
2828
`Can't add recipe.`,
2929
);
3030
});
3131

32-
it('should add recipe to meal repository', () => {
32+
it('adds recipe to meal repository', () => {
3333
const { mealPlanner, mealRepoFake, burger } = createMealPlanner();
3434

3535
mealPlanner.addRecipe(burger);
@@ -40,7 +40,7 @@ describe(MealPlanner.name, () => {
4040
});
4141

4242
describe('recipes$', () => {
43-
it('should emit empty array when no recipes', async () => {
43+
it('emits empty array when no recipes', async () => {
4444
const { mealPlanner } = createMealPlanner();
4545

4646
using observer = observe(mealPlanner.recipes$);
@@ -49,7 +49,7 @@ describe(MealPlanner.name, () => {
4949
expect(observer.next).toHaveBeenCalledWith([]);
5050
});
5151

52-
it('should emit recipes when added', () => {
52+
it('emits recipes when added', () => {
5353
const { mealPlanner, burger, salad } = createMealPlanner();
5454

5555
using observer = observe(mealPlanner.recipes$);
@@ -71,7 +71,7 @@ describe(MealPlanner.name, () => {
7171
});
7272

7373
describe('watchCanAddRecipe()', () => {
74-
it('should instantly emit if recipe can be added', () => {
74+
it('emits instantly if recipe can be added', () => {
7575
const { mealPlanner, burger } = createMealPlanner();
7676

7777
using observer = observe(mealPlanner.watchCanAddRecipe(burger));

apps/201-meal-planner-indirect-output-starter/src/app/meal-planner/meal-planner.spec.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { recipeMother } from '../testing/recipe.mother';
55
import { MealPlanner } from './meal-planner';
66

77
describe(MealPlanner.name, () => {
8-
it('should add recipe', async () => {
8+
it('adds recipes', async () => {
99
const { mealPlanner, burger, salad } = createMealPlanner();
1010

1111
mealPlanner.addRecipe(burger);
@@ -17,7 +17,7 @@ describe(MealPlanner.name, () => {
1717
]);
1818
});
1919

20-
it('should throw error if recipe is already present', () => {
20+
it('throws error if recipe is already present', () => {
2121
const { mealPlanner, burgerDuplicate } = createMealPlannerWithBurger();
2222

2323
expect(() => mealPlanner.addRecipe(burgerDuplicate)).toThrow(
@@ -28,7 +28,7 @@ describe(MealPlanner.name, () => {
2828
it.todo('🚧 should add recipe to meal repository');
2929

3030
describe('recipes$', () => {
31-
it('should emit empty array when no recipes', async () => {
31+
it('emits empty array when no recipes', async () => {
3232
const { mealPlanner } = createMealPlanner();
3333

3434
using observer = observe(mealPlanner.recipes$);
@@ -37,7 +37,7 @@ describe(MealPlanner.name, () => {
3737
expect(observer.next).toHaveBeenCalledWith([]);
3838
});
3939

40-
it('should emit recipes when added', () => {
40+
it('emits recipes when added', () => {
4141
const { mealPlanner, burger, salad } = createMealPlanner();
4242

4343
using observer = observe(mealPlanner.recipes$);
@@ -59,7 +59,7 @@ describe(MealPlanner.name, () => {
5959
});
6060

6161
describe('watchCanAddRecipe()', () => {
62-
it('should instantly emit if recipe can be added', () => {
62+
it('emits instantly if recipe can be added', () => {
6363
const { mealPlanner, burger } = createMealPlanner();
6464

6565
using observer = observe(mealPlanner.watchCanAddRecipe(burger));

apps/202-meal-planner-indirect-input-solution/src/app/meal-planner/meal-planner.spec.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
} from './meal-repository.fake';
1010

1111
describe(MealPlanner.name, () => {
12-
it('should add recipe', async () => {
12+
it('adds recipes', async () => {
1313
const { mealPlanner, burger, salad } = createMealPlanner();
1414

1515
mealPlanner.addRecipe(burger);
@@ -21,15 +21,15 @@ describe(MealPlanner.name, () => {
2121
]);
2222
});
2323

24-
it('should throw error if recipe is already present', () => {
24+
it('throws error if recipe is already present', () => {
2525
const { mealPlanner, burgerDuplicate } = createMealPlannerWithBurger();
2626

2727
expect(() => mealPlanner.addRecipe(burgerDuplicate)).toThrow(
2828
`Can't add recipe.`,
2929
);
3030
});
3131

32-
it('should add recipe to meal repository', () => {
32+
it('adds recipe to meal repository', () => {
3333
const { mealPlanner, mealRepoFake, burger } = createMealPlanner();
3434

3535
mealPlanner.addRecipe(burger);
@@ -39,7 +39,7 @@ describe(MealPlanner.name, () => {
3939
]);
4040
});
4141

42-
it('should fetch recipes from meal repository', async () => {
42+
it('fetches recipes from meal repository', async () => {
4343
const { getMealPlanner, mealRepoFake, burger } = setUpMealPlanner();
4444

4545
mealRepoFake.addMeal(burger);
@@ -51,7 +51,7 @@ describe(MealPlanner.name, () => {
5151
});
5252

5353
describe('recipes$', () => {
54-
it('should emit empty array when no recipes', async () => {
54+
it('emits empty array when no recipes', async () => {
5555
const { mealPlanner } = createMealPlanner();
5656

5757
using observer = observe(mealPlanner.recipes$);
@@ -60,7 +60,7 @@ describe(MealPlanner.name, () => {
6060
expect(observer.next).toHaveBeenCalledWith([]);
6161
});
6262

63-
it('should emit recipes when added', () => {
63+
it('emits recipes when added', () => {
6464
const { mealPlanner, burger, salad } = createMealPlanner();
6565

6666
using observer = observe(mealPlanner.recipes$);
@@ -82,7 +82,7 @@ describe(MealPlanner.name, () => {
8282
});
8383

8484
describe('watchCanAddRecipe()', () => {
85-
it('should instantly emit if recipe can be added', () => {
85+
it('emits instantly if recipe can be added', () => {
8686
const { mealPlanner, burger } = createMealPlanner();
8787

8888
using observer = observe(mealPlanner.watchCanAddRecipe(burger));

apps/202-meal-planner-indirect-input-starter/src/app/meal-planner/meal-planner.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
} from './meal-repository.fake';
1010

1111
describe(MealPlanner.name, () => {
12-
it('should add recipe', async () => {
12+
it('adds recipes', async () => {
1313
const { mealPlanner, burger, salad } = createMealPlanner();
1414

1515
mealPlanner.addRecipe(burger);
@@ -21,15 +21,15 @@ describe(MealPlanner.name, () => {
2121
]);
2222
});
2323

24-
it('should throw error if recipe is already present', () => {
24+
it('throws error if recipe is already present', () => {
2525
const { mealPlanner, burgerDuplicate } = createMealPlannerWithBurger();
2626

2727
expect(() => mealPlanner.addRecipe(burgerDuplicate)).toThrow(
2828
`Can't add recipe.`,
2929
);
3030
});
3131

32-
it('should add recipe to meal repository', () => {
32+
it('adds recipe to meal repository', () => {
3333
const { mealPlanner, mealRepoFake, burger } = createMealPlanner();
3434

3535
mealPlanner.addRecipe(burger);
@@ -42,7 +42,7 @@ describe(MealPlanner.name, () => {
4242
it.todo('🚧 should fetch recipes from meal repository');
4343

4444
describe('recipes$', () => {
45-
it('should emit empty array when no recipes', async () => {
45+
it('emits empty array when no recipes', async () => {
4646
const { mealPlanner } = createMealPlanner();
4747

4848
using observer = observe(mealPlanner.recipes$);
@@ -51,7 +51,7 @@ describe(MealPlanner.name, () => {
5151
expect(observer.next).toHaveBeenCalledWith([]);
5252
});
5353

54-
it('should emit recipes when added', () => {
54+
it('emits recipes when added', () => {
5555
const { mealPlanner, burger, salad } = createMealPlanner();
5656

5757
using observer = observe(mealPlanner.recipes$);
@@ -73,7 +73,7 @@ describe(MealPlanner.name, () => {
7373
});
7474

7575
describe('watchCanAddRecipe()', () => {
76-
it('should instantly emit if recipe can be added', () => {
76+
it('emits instantly if recipe can be added', () => {
7777
const { mealPlanner, burger } = createMealPlanner();
7878

7979
using observer = observe(mealPlanner.watchCanAddRecipe(burger));

0 commit comments

Comments
 (0)