challenge-algorithms-v2.0/01-greeting/intex.test.js

15 lines
489 B
JavaScript
Raw Normal View History

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-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');
});
});