aboutsummaryrefslogtreecommitdiff
path: root/src/tests/utils.js
diff options
context:
space:
mode:
authorPitu <[email protected]>2021-01-04 00:48:34 +0900
committerPitu <[email protected]>2021-01-04 00:48:34 +0900
commitb77c0a57cc089a554ee874ae9ff5ff53e6b5eb99 (patch)
tree3f53f464b09a439958389bbd3652ebb66b33a4af /src/tests/utils.js
parentUpdate migration (diff)
downloadhost.fuwn.me-b77c0a57cc089a554ee874ae9ff5ff53e6b5eb99.tar.xz
host.fuwn.me-b77c0a57cc089a554ee874ae9ff5ff53e6b5eb99.zip
feat: add testing capabilities
Diffstat (limited to 'src/tests/utils.js')
-rw-r--r--src/tests/utils.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/tests/utils.js b/src/tests/utils.js
new file mode 100644
index 0000000..3634ed9
--- /dev/null
+++ b/src/tests/utils.js
@@ -0,0 +1,11 @@
+const axios = require('axios');
+const instance = axios.create({
+ baseURL: 'http://localhost:5000',
+ headers: {
+ common: {
+ accept: 'application/vnd.chibisafe.json'
+ }
+ }
+});
+
+module.exports.axios = instance;