Created
March 5, 2019 01:38
-
-
Save MeetMartin/04d8da61855e7773eb50f30e0af840dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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