Skip to content

Instantly share code, notes, and snippets.

@ibrahimBanat
Created June 20, 2021 22:40
Show Gist options
  • Save ibrahimBanat/bc97bc97f3b43c3ee38db5ff3dfdf01c to your computer and use it in GitHub Desktop.
Save ibrahimBanat/bc97bc97f3b43c3ee38db5ff3dfdf01c to your computer and use it in GitHub Desktop.
it("should return exception when passing empty array", () => {
//arrange
let arr = [];
//act
let sorted = insertionSort(arr);
//assert
expect(sorted).toEqual("Exception");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment