Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentsenta committed Jun 2, 2023
1 parent 7649218 commit deeabd9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/t0115_gateway_dir_listing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,14 @@ func TestDirectorListingOnGateway(t *testing.T) {
Header("Etag").Contains(`"DirIndex-`),
).
BodyWithHint(`
- should contain "Index of"
- Breadcrumbs should point at /ipfs namespace mounted at Origin root
- backlink on subdirectory should point at parent directory
- name column should be a link to its content path
- hash column should be a CID link with filename param
`,
And(
Contains("Index of"),
Contains(`/ipfs/<a href="/ipfs/{{cid}}">{{cid}}</a>/<a href="/ipfs/{{cid}}/%C4%85">ą</a>/<a href="/ipfs/{{cid}}/%C4%85/%C4%99">ę</a>`,
root.Cid()),
Contains(`<a href="/ipfs/{{cid}}/%C4%85/%C4%99/..">..</a>`, root.Cid()),
Expand Down

0 comments on commit deeabd9

Please sign in to comment.