@nlabs/arkhamjs-example-react
Version:
ArkhamJS React Example App
20 lines (17 loc) • 535 B
text/typescript
import {StringService} from './StringService';
describe('StringService', () => {
describe('.uppercaseWords', () => {
it('should uppercase words', () => {
const str = 'test string';
const expected = 'Test String';
return expect(StringService.uppercaseWords(str)).toBe(expected);
});
});
describe('.capitalize', () => {
it('should capitalize word', () => {
const str = 'test';
const expected = 'Test';
return expect(StringService.capitalize(str)).toBe(expected);
});
});
});