1
2 content_copy
3
4 describe('TitleCasePipe', () => {
5 // This pipe is a pure, stateless function so no need for BeforeEach
6 const pipe = new TitleCasePipe();
7
8 it('transforms "abc" to "Abc"', () => {
9 expect(pipe.transform('abc')).toBe('Abc');
10 });
11
12 it('transforms "abc def" to "Abc Def"', () => {
13 expect(pipe.transform('abc def')).toBe('Abc Def');
14 });
15
16 // ... more tests ...
17});
18