summaryrefslogtreecommitdiff
path: root/test/utils.ts
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2021-03-13 23:22:54 +0900
committerGitHub <noreply@github.com>2021-03-13 23:22:54 +0900
commit7d02b36092bbb4e1887abde57500e3aba13497f4 (patch)
tree0ea2abdd223a392d2f89b0d34f47ec4790687986 /test/utils.ts
parentFix Schema (#7347) (diff)
downloadsharkey-7d02b36092bbb4e1887abde57500e3aba13497f4.tar.gz
sharkey-7d02b36092bbb4e1887abde57500e3aba13497f4.tar.bz2
sharkey-7d02b36092bbb4e1887abde57500e3aba13497f4.zip
Fix assets test and favicon type (#7344)
* fix * koa-faviconはimage/x-iconがデフォルトらしい * シンプルに * faviconなど
Diffstat (limited to 'test/utils.ts')
-rw-r--r--test/utils.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/utils.ts b/test/utils.ts
index 55e877a8a2..b0393ee192 100644
--- a/test/utils.ts
+++ b/test/utils.ts
@@ -110,7 +110,7 @@ export function connectStream(user: any, channel: string, listener: (message: Re
});
}
-export const simpleGet = async (path: string, accept: string): Promise<{ status?: number, type?: string, location?: string }> => {
+export const simpleGet = async (path: string, accept = '*/*'): Promise<{ status?: number, type?: string, location?: string }> => {
// node-fetchだと3xxを取れない
return await new Promise((resolve, reject) => {
const req = http.request(`http://localhost:${port}${path}`, {