| | |
| | | expect(data).to.have.property("version") |
| | | expect(data.version).to.be.a("string") |
| | | }) |
| | | it("should not be accessible without TOKEN", async function () { |
| | | it("should not be accessible without a TOKEN", async function () { |
| | | const urlR = `${settings.restUrl}/api/user?offset=0&limit=1` |
| | | const res = await fetch(urlR) |
| | | expect(res.status).to.equal(403) |
| | | }) |
| | | it("should be accessible with TOKEN", async function () { |
| | | it("should be accessible with a TOKEN", async function () { |
| | | const urlR = `${settings.restUrl}/api/user?offset=0&limit=1&token=${settings.authtoken}` |
| | | const res = await fetch(urlR) |
| | | expect(res.status).to.equal(200) |