zurfyx/typescript-starter-kit

View on GitHub
src/__tests__/hello.test.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { hello } from '../hello';

describe('Hello', () => {
  test('returns name param with !', () => {
    expect(hello('🍭')).toBe('Hello 🍭!');
  });

  test('returns name param with .', () => {
    expect(hello('🍭', false)).toBe('Hello 🍭.');
  });
});