feat: creates support for swaps on the storefront (#355)
This commit is contained in:
1 parent
bd1e115696
commit
ae82cfc70a
20 files changed
+2122
-1170
No files matched your search
@@ -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_
|
||||
},
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user