feat: creates support for swaps on the storefront (#355)

This commit is contained in:
Sebastian Rindom authored and GitHub committed 2021-08-30 12:14:56 +02:00
1 parent bd1e115696
commit ae82cfc70a
20 files changed
+2122 -1170

No files matched your search

+7 -7
View File
@@ -1,21 +1,21 @@
const axios = require("axios").default;
const axios = require("axios").default
const ServerTestUtil = {
port_: null,
client_: null,
setPort: function (port) {
this.client_ = axios.create({ baseURL: `http://localhost:${port}` });
this.client_ = axios.create({ baseURL: `http://localhost:${port}` })
},
};
}
const instance = ServerTestUtil;
const instance = ServerTestUtil
module.exports = {
setPort: function (port) {
instance.setPort(port);
instance.setPort(port)
},
useApi: function () {
return instance.client_;
return instance.client_
},
};
}