Skip to content

Commit

Permalink
Adjust tests to use non-deprecated concepts endpoints (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandesu committed Apr 14, 2023
1 parent 2ae498a commit 7c9175b
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1663,11 +1663,11 @@ describe("Express Server", () => {

})

describe("GET /narrower", () => {
describe("GET /concepts/narrower", () => {

it("should GET three children", done => {
chai.request(server.app)
.get("/narrower")
.get("/concepts/narrower")
.query({
uri: "http://dewey.info/class/6/e23/",
})
Expand All @@ -1684,11 +1684,11 @@ describe("Express Server", () => {

})

describe("GET /ancestors", () => {
describe("GET /concepts/ancestors", () => {

it("should GET correct results when using properties=narrower", done => {
chai.request(server.app)
.get("/ancestors")
.get("/concepts/ancestors")
.query({
uri: "http://dewey.info/class/60/e23/",
properties: "narrower",
Expand All @@ -1708,11 +1708,11 @@ describe("Express Server", () => {

})

describe("GET /suggest", () => {
describe("GET /concepts/suggest", () => {

it("should GET correct results for notation", done => {
chai.request(server.app)
.get("/suggest")
.get("/concepts/suggest")
.query({
search: "60",
})
Expand All @@ -1737,7 +1737,7 @@ describe("Express Server", () => {

it("should GET correct results for notation with language", done => {
chai.request(server.app)
.get("/suggest")
.get("/concepts/suggest")
.query({
search: "60",
language: "de,en",
Expand All @@ -1759,7 +1759,7 @@ describe("Express Server", () => {

it("should GET correct results for term", done => {
chai.request(server.app)
.get("/suggest")
.get("/concepts/suggest")
.query({
search: "techn",
})
Expand All @@ -1782,7 +1782,7 @@ describe("Express Server", () => {

it("should GET correct results for term with voc parameter", done => {
chai.request(server.app)
.get("/suggest")
.get("/concepts/suggest")
.query({
search: "techn",
voc: "http://dewey.info/scheme/edition/e23/",
Expand All @@ -1805,11 +1805,11 @@ describe("Express Server", () => {

})

describe("GET /search", () => {
describe("GET /concepts/search", () => {

it("should GET correct results for notation", done => {
chai.request(server.app)
.get("/search")
.get("/concepts/search")
.query({
search: "60",
})
Expand All @@ -1828,7 +1828,7 @@ describe("Express Server", () => {

it("should GET correct results for term", done => {
chai.request(server.app)
.get("/search")
.get("/concepts/search")
.query({
search: "techn",
})
Expand Down

0 comments on commit 7c9175b

Please sign in to comment.