debut TP2

This commit is contained in:
2024-04-18 09:43:42 +02:00
parent a17920df41
commit e092272bd4
31 changed files with 696 additions and 37 deletions

View File

@ -0,0 +1,14 @@
import { removeDuplicates } from "./index";
describe("removeDuplicates", () => {
it("should multiply all numbers of 2 arrays", () => {
// Arrange
const arr = [1, 2, 2, 2, 3, 3, 4];
// Act
const result = removeDuplicates(arr);
// Assert
expect(result).toStrictEqual([1, 2, 3, 4]);
});
});