/ tests / api / TypeHttpDomaine.test.ts
TypeHttpDomaine.test.ts
 1  import { describe, expect, it } from "bun:test";
 2  import { TypeHttpDomaine } from "~/api/types/TypeHttpDomaine";
 3  
 4  describe("TypeHttpDomaine", () => {
 5    it("should create a new domain", () => {
 6      const domain = new TypeHttpDomaine();
 7      domain.setValue(true, 2, 7);
 8      domain.setValue(false, 4, 6);
 9      expect(domain.getWeeks()).toEqual([2, 3, 7]);
10    });
11  });