Skip to content

Commit

Permalink
fix: mismatch between sample code and text (#575)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrwho authored Jun 11, 2020
1 parent 2e2ec46 commit 6afdc23
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/subpath.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ server {
```

This will tell the application to serve the application and relevant elements under
`/some/deep/map`.
`/hassio/ingress/`.

In case you are using the [ingress of Home Assistant](https://www.home-assistant.io/blog/2019/04/15/hassio-ingress/) you will want to
pick up the `X-Ingress-Path;` and map it, something along
Expand Down
7 changes: 7 additions & 0 deletions test/lib/renderIndex.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,19 @@ const mockResponse = {
describe('#renderIndex', () => {
describe('Processing configuration', () => {
let renderIndex
let mockedReaddir

beforeEach(() => {
renderIndex = rewire('../../lib/renderIndex')
renderIndex.__set__('webConfig', {
base: '/configured/path'
})
mockedReaddir = sinon.stub(fs, 'readdirSync')
mockedReaddir.returns([])
})

afterEach(() => {
mockedReaddir.restore()
})

it('uses the base from the `X-External-Path` header', () => {
Expand Down

0 comments on commit 6afdc23

Please sign in to comment.