View | Details | Raw Unified | Return to bug 40173
Collapse All | Expand All

(-)a/t/cypress/integration/t/api-client.ts (-5 / +4 lines)
Lines 2-10 const { APIClient } = require("./../../plugins/dist/api-client.cjs.js"); Link Here
2
2
3
describe("Using APIClient", () => {
3
describe("Using APIClient", () => {
4
    let client = APIClient.default;
4
    let client = APIClient.default;
5
    it("should 404 for non-existent biblio", async () => {
5
    it("should 404 for non-existent biblio", () => {
6
        try {
6
        try {
7
            await client.koha.get({
7
            client.koha.get({
8
                endpoint: "/api/v1/public/biblios/99999",
8
                endpoint: "/api/v1/public/biblios/99999",
9
                return_response: true,
9
                return_response: true,
10
            });
10
            });
Lines 15-23 describe("Using APIClient", () => { Link Here
15
});
15
});
16
16
17
describe("Using the api-client plugin", () => {
17
describe("Using the api-client plugin", () => {
18
    it("should 404 for non-existent biblio", async () => {
18
    it("should 404 for non-existent biblio", () => {
19
        try {
19
        try {
20
            await cy.task("apiGet", {
20
            cy.task("apiGet", {
21
                endpoint: "/api/v1/public/biblios/99999",
21
                endpoint: "/api/v1/public/biblios/99999",
22
                return_response: true,
22
                return_response: true,
23
            });
23
            });
24
- 

Return to bug 40173