diff --git a/docs/typedoc/interfaces/useServer.HTTPuppyRequest.md b/docs/typedoc/interfaces/useServer.HTTPuppyRequest.md index ebd2d4a..f27c318 100644 --- a/docs/typedoc/interfaces/useServer.HTTPuppyRequest.md +++ b/docs/typedoc/interfaces/useServer.HTTPuppyRequest.md @@ -85,7 +85,7 @@ #### Defined in -[src/server.ts:54](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L54) +[src/server.ts:54](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L54) ___ @@ -95,7 +95,7 @@ ___ #### Defined in -[src/server.ts:55](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L55) +[src/server.ts:55](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L55) ___ @@ -126,7 +126,7 @@ ___ #### Defined in -[src/server.ts:53](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L53) +[src/server.ts:53](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L53) ___ diff --git a/docs/typedoc/interfaces/useServer.HTTPuppyResponse.md b/docs/typedoc/interfaces/useServer.HTTPuppyResponse.md index 72c1fb8..8d76961 100644 --- a/docs/typedoc/interfaces/useServer.HTTPuppyResponse.md +++ b/docs/typedoc/interfaces/useServer.HTTPuppyResponse.md @@ -89,7 +89,7 @@ #### Defined in -[src/server.ts:58](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L58) +[src/server.ts:58](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L58) ___ @@ -1352,7 +1352,7 @@ ___ #### Defined in -[src/server.ts:60](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L60) +[src/server.ts:60](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L60) ___ @@ -2371,7 +2371,7 @@ ___ #### Defined in -[src/server.ts:59](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L59) +[src/server.ts:59](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L59) ___ diff --git a/docs/typedoc/interfaces/useServer.HTTPuppyServer.md b/docs/typedoc/interfaces/useServer.HTTPuppyServer.md index ab4f5ec..b6b88f0 100644 --- a/docs/typedoc/interfaces/useServer.HTTPuppyServer.md +++ b/docs/typedoc/interfaces/useServer.HTTPuppyServer.md @@ -68,7 +68,7 @@ #### Defined in -[src/server.ts:50](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L50) +[src/server.ts:50](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L50) ___ @@ -78,7 +78,7 @@ ___ #### Defined in -[src/server.ts:49](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L49) +[src/server.ts:49](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L49) ___ @@ -102,7 +102,7 @@ ___ #### Defined in -[src/server.ts:45](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L45) +[src/server.ts:45](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L45) ___ @@ -252,7 +252,7 @@ ___ #### Defined in -[src/server.ts:46](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L46) +[src/server.ts:46](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L46) ___ @@ -262,7 +262,7 @@ ___ #### Defined in -[src/server.ts:44](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L44) +[src/server.ts:44](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L44) ___ @@ -2546,7 +2546,7 @@ ___ #### Defined in -[src/server.ts:47](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L47) +[src/server.ts:47](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L47) ___ @@ -2560,7 +2560,7 @@ ___ #### Defined in -[src/server.ts:48](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L48) +[src/server.ts:48](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L48) ___ diff --git a/docs/typedoc/interfaces/useServer.HTTPuppyServerOptions.md b/docs/typedoc/interfaces/useServer.HTTPuppyServerOptions.md index 73e5c00..d85489a 100644 --- a/docs/typedoc/interfaces/useServer.HTTPuppyServerOptions.md +++ b/docs/typedoc/interfaces/useServer.HTTPuppyServerOptions.md @@ -60,7 +60,7 @@ #### Defined in -[src/server.ts:105](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L105) +[src/server.ts:105](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L105) ___ @@ -70,7 +70,7 @@ ___ #### Defined in -[src/server.ts:97](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L97) +[src/server.ts:97](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L97) ___ @@ -80,7 +80,7 @@ ___ #### Defined in -[src/server.ts:106](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L106) +[src/server.ts:106](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L106) ___ @@ -90,7 +90,7 @@ ___ #### Defined in -[src/server.ts:98](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L98) +[src/server.ts:98](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L98) ___ @@ -100,7 +100,7 @@ ___ #### Defined in -[src/server.ts:101](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L101) +[src/server.ts:101](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L101) ___ @@ -110,7 +110,7 @@ ___ #### Defined in -[src/server.ts:102](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L102) +[src/server.ts:102](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L102) ___ @@ -120,7 +120,7 @@ ___ #### Defined in -[src/server.ts:104](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L104) +[src/server.ts:104](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L104) ___ @@ -130,7 +130,7 @@ ___ #### Defined in -[src/server.ts:103](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L103) +[src/server.ts:103](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L103) ___ @@ -140,7 +140,7 @@ ___ #### Defined in -[src/server.ts:96](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L96) +[src/server.ts:96](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L96) ___ @@ -150,7 +150,7 @@ ___ #### Defined in -[src/server.ts:107](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L107) +[src/server.ts:107](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L107) ___ @@ -168,7 +168,7 @@ ___ #### Defined in -[src/server.ts:108](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L108) +[src/server.ts:108](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L108) ___ @@ -178,7 +178,7 @@ ___ #### Defined in -[src/server.ts:99](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L99) +[src/server.ts:99](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L99) ___ @@ -188,7 +188,7 @@ ___ #### Defined in -[src/server.ts:100](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L100) +[src/server.ts:100](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L100) ___ @@ -198,7 +198,7 @@ ___ #### Defined in -[src/server.ts:113](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L113) +[src/server.ts:113](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L113) ___ @@ -208,4 +208,4 @@ ___ #### Defined in -[src/server.ts:114](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L114) +[src/server.ts:114](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L114) diff --git a/docs/typedoc/modules/useRouter.md b/docs/typedoc/modules/useRouter.md index 5e4c96f..dcd7798 100644 --- a/docs/typedoc/modules/useRouter.md +++ b/docs/typedoc/modules/useRouter.md @@ -29,7 +29,7 @@ #### Defined in -[src/router.ts:52](https://github.com/abschill/httpuppy/blob/1c77fbb/src/router.ts#L52) +[src/router.ts:52](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/router.ts#L52) ## Functions @@ -59,4 +59,4 @@ router.get('/test', (req, res) => res.end('hello')); #### Defined in -[src/router.ts:123](https://github.com/abschill/httpuppy/blob/1c77fbb/src/router.ts#L123) +[src/router.ts:123](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/router.ts#L123) diff --git a/docs/typedoc/modules/useServer.md b/docs/typedoc/modules/useServer.md index 1b8fa53..7118567 100644 --- a/docs/typedoc/modules/useServer.md +++ b/docs/typedoc/modules/useServer.md @@ -45,7 +45,7 @@ #### Defined in -[src/server.ts:72](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L72) +[src/server.ts:72](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L72) ___ @@ -63,7 +63,7 @@ ___ #### Defined in -[src/server.ts:77](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L77) +[src/server.ts:77](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L77) ___ @@ -82,7 +82,7 @@ ___ #### Defined in -[src/server.ts:62](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L62) +[src/server.ts:62](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L62) ## Variables @@ -92,7 +92,7 @@ ___ #### Defined in -[src/server.ts:117](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L117) +[src/server.ts:117](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L117) ## Functions @@ -112,7 +112,7 @@ ___ #### Defined in -[src/server.ts:129](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L129) +[src/server.ts:129](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L129) ___ @@ -145,4 +145,4 @@ httpuppy server #### Defined in -[src/server.ts:151](https://github.com/abschill/httpuppy/blob/1c77fbb/src/server.ts#L151) +[src/server.ts:151](https://github.com/abschill/httpuppy/blob/7fbe8ea/src/server.ts#L151) diff --git a/test/internal.test.ts b/test/internal.test.ts index 9bf4635..2ddb9ea 100644 --- a/test/internal.test.ts +++ b/test/internal.test.ts @@ -8,9 +8,7 @@ import { join, resolve } from 'path'; import { isValidStats, useEntityTag, - checkNumConfigs, - mimeType, - useConfigFrom + mimeType } from '../lib/internal'; const fixtures = join(process.cwd(), '__fixtures__'); @@ -28,12 +26,6 @@ describe('test etag generation process', () => { }); }); -describe('misc internal testing', () => { - it('finds the right number of configs in figures', () => { - expect(checkNumConfigs(fixtures)).toBe(2); - }); -}); - describe('localized mime types', () => { it('detects the html file in fixtures', () => { expect(mimeType(resolve(fixtures, 'index.html'))).toEqual({'Content-Type': 'text/html'}); @@ -43,10 +35,3 @@ describe('localized mime types', () => { expect(mimeType(resolve(process.cwd(), 'examples', 'style.css'))).toEqual({'Content-Type': 'text/css'}); }); }); - -describe('config tests', () => { - it('loads config without prompt from local dir with only one option', () => { - const expected = require('../httpuppy.json'); - expect(useConfigFrom(process.cwd())).toEqual(expected); - }); -});