/ tests / models / InstanceInformation.test.ts
InstanceInformation.test.ts
 1  import instanceinformation from "@!/instanceinformation.json";
 2  import { describe, expect, it } from "bun:test";
 3  import { deserialize } from "desero";
 4  import { InstanceInformation } from "~/models/Instance/InstanceInformation";
 5  
 6  describe("InstanceInformation", () => {
 7    it("should deserialize global metadata correctly", () => {
 8      const instance = deserialize(InstanceInformation, instanceinformation);
 9      expect(instance.name).toBe("SITE DE DEMONSTRATION");
10      expect(instance.version).toEqual([2025, 2, 6]);
11    });
12  });