Skip to content

Instantly share code, notes, and snippets.

@Qarun-Qadir-Bissoondial
Last active April 18, 2020 21:54
Show Gist options
  • Save Qarun-Qadir-Bissoondial/0215e736b5d5563761c2bf583b7a0e04 to your computer and use it in GitHub Desktop.
Save Qarun-Qadir-Bissoondial/0215e736b5d5563761c2bf583b7a0e04 to your computer and use it in GitHub Desktop.
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