2022-10-30 02:25:47 +00:00
|
|
|
import { greet } from './index';
|
|
|
|
describe('greet1', () => {
|
|
|
|
it('Dever retornar "Hello Maria" quando passamos a palavra "Maria"', () => {
|
|
|
|
expect(greet('Maria')).toBe('Hello Maria');
|
|
|
|
});
|
2022-10-27 15:07:13 +00:00
|
|
|
|
2022-10-30 02:25:47 +00:00
|
|
|
it('Dever retornar "Hello Alvin" quando passamos a palavra "Alvin"', () => {
|
|
|
|
expect(greet('Alvin')).toBe('Hello Alvin');
|
|
|
|
});
|
|
|
|
|
|
|
|
it('Dever retornar "Hello Pedro Lucas" quando passamos a palavra "Pedro Lucas"', () => {
|
|
|
|
expect(greet('Pedro Lucas')).toBe('Hello Pedro Lucas');
|
|
|
|
});
|
|
|
|
});
|