UNPKG

@36node/template-service

Version:

A service boilerplate with openapi,rest and mongodb.

32 lines (26 loc) 786 B
test("should use mongoose mock", () => { expect(true).toBe(true); }); // should use mongoose mock // test("listPets service should work", () => { // const result = service.listPets(); // expect(result).toHaveLength(3); // }); // test("listPetsXNext service should work", () => { // const result = service.listPetsXNext(); // expect(result).toBe("x-next"); // }); // test("createPet service should work", () => { // const result = service.createPet( // {}, // { // name: "test", // tag: "t", // } // ); // expect(result.name).toBe("test"); // }); // test("showPetById service should work", () => { // const result = service.showPetById({}, { petId: "11212" }); // expect(result).toEqual({ id: "11212", name: "dog", tag: "cute" }); // });