Last active
April 18, 2020 21:54
-
-
Save Qarun-Qadir-Bissoondial/0215e736b5d5563761c2bf583b7a0e04 to your computer and use it in GitHub Desktop.
This file contains 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 { capitalizeName } from "./capitalizeName"; | |
describe('capitalizeName', () => { | |
it('should capitalize the name in the object', () => { | |
const testObj = { name: 'Qarun', age: 25 }; | |
const expectedResult = {name: 'QARUN', age: 25}; | |
const actualResult = capitalizeName(testObj); | |
expect(actualResult).toEqual(expectedResult); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment