Skip to content

Instantly share code, notes, and snippets.

@MeetMartin
Created March 5, 2019 01:38
Show Gist options
  • Save MeetMartin/04d8da61855e7773eb50f30e0af840dd to your computer and use it in GitHub Desktop.
Save MeetMartin/04d8da61855e7773eb50f30e0af840dd to your computer and use it in GitHub Desktop.
import { assert } from 'chai';
import TextTransformation from '../src/text-transform-class';
describe('test makeImportant', () => {
it('Makes it capitalized, trimmed with ! at the end.',
() => assert.strictEqual(new TextTransformation (' pReSiDeNt ').makeImportant(), 'President!'));
});
describe('test makeUnimportant', () => {
it('Makes it lowercase, trimmed with . at the end.',
() => assert.strictEqual(new TextTransformation (' pReSiDeNt ').makeUnimportant(), 'president.'));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment