Skip to content
This repository was archived by the owner on Feb 24, 2021. It is now read-only.

Commit 6afdc23

Browse files
authored
fix: mismatch between sample code and text (#575)
1 parent 2e2ec46 commit 6afdc23

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Diff for: docs/subpath.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ server {
3333
```
3434

3535
This will tell the application to serve the application and relevant elements under
36-
`/some/deep/map`.
36+
`/hassio/ingress/`.
3737

3838
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
3939
pick up the `X-Ingress-Path;` and map it, something along

Diff for: test/lib/renderIndex.test.js

+7
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,19 @@ const mockResponse = {
2323
describe('#renderIndex', () => {
2424
describe('Processing configuration', () => {
2525
let renderIndex
26+
let mockedReaddir
2627

2728
beforeEach(() => {
2829
renderIndex = rewire('../../lib/renderIndex')
2930
renderIndex.__set__('webConfig', {
3031
base: '/configured/path'
3132
})
33+
mockedReaddir = sinon.stub(fs, 'readdirSync')
34+
mockedReaddir.returns([])
35+
})
36+
37+
afterEach(() => {
38+
mockedReaddir.restore()
3239
})
3340

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

0 commit comments

Comments
 (0)