Skip to content

Commit

Permalink
Update tests to pass with the new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
humitos committed Jan 22, 2025
1 parent 892a26a commit 63c3a6b
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 11 deletions.
3 changes: 3 additions & 0 deletions public/_/readthedocs-addons.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@
"readthedocs": {
"analytics": {
"code": "UA-12345"
},
"resolver": {
"filename": "/index.html"
}
},
"addons": {
Expand Down
5 changes: 5 additions & 0 deletions tests/flyout.test.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
enabled: true,
},
},
readthedocs: {
resolver: {
filename: "/",
},
},
projects: {
current: {
slug: "project",
Expand Down
20 changes: 20 additions & 0 deletions tests/flyout.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ describe("Flyout addon", () => {
versions: [],
},
},
readthedocs: {
resolver: {
filename: "/index.html",
},
},
projects: {
current: {
slug: "project",
Expand All @@ -49,6 +54,11 @@ describe("Flyout addon", () => {
enabled: true,
},
},
readthedocs: {
resolver: {
filename: "/index.html",
},
},
projects: {
current: {
slug: "project",
Expand Down Expand Up @@ -92,6 +102,11 @@ describe("Flyout addon", () => {
enabled: true,
},
},
readthedocs: {
resolver: {
filename: "/index.html",
},
},
projects: {
current: {
slug: "project",
Expand Down Expand Up @@ -135,6 +150,11 @@ describe("Flyout addon", () => {
enabled: true,
},
},
readthedocs: {
resolver: {
filename: "/index.html",
},
},
projects: {
current: {
slug: "project",
Expand Down
11 changes: 0 additions & 11 deletions tests/index.test.js

This file was deleted.

5 changes: 5 additions & 0 deletions tests/notification.test.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@
show_on_external: true,
},
},
readthedocs: {
resolver: {
filename: "/section/page.html",
},
},
builds: {
current: {
urls: {
Expand Down

0 comments on commit 63c3a6b

Please sign in to comment.