mirror of
https://github.com/logos-storage/logos-storage-js.git
synced 2026-08-08 07:13:25 +00:00
Re enable test in debug
This commit is contained in:
parent
73b395f714
commit
e943a2ffa9
@ -30,13 +30,16 @@ describe("debug", () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
// it("returns a success when trying to setup the log level with a correct value", async (t) => {
|
it("returns a success when trying to setup the log level with a correct value", async (t) => {
|
||||||
// const spy = vi.spyOn(Fetch, "safe");
|
const mockResponse = {
|
||||||
|
ok: true,
|
||||||
|
status: 200,
|
||||||
|
text: async () => "",
|
||||||
|
} as Response;
|
||||||
|
globalThis.fetch = vi.fn().mockResolvedValue(mockResponse);
|
||||||
|
|
||||||
// expect(spy).toHaveBeenCalledTimes(1);
|
const response = await debug.setLogLevel("ERROR");
|
||||||
|
|
||||||
// const response = await debug.setLogLevel("ERROR");
|
assert.deepStrictEqual(response, { error: false, data: "" });
|
||||||
|
});
|
||||||
// assert.deepStrictEqual(response, { error: false, data: true });
|
|
||||||
// });
|
|
||||||
});
|
});
|
||||||
|
|||||||
@ -220,9 +220,6 @@ export class CodexMarketplace {
|
|||||||
|
|
||||||
const res = await Fetch.safe(url, {
|
const res = await Fetch.safe(url, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
// headers: {
|
|
||||||
// "content-type": "application/json",
|
|
||||||
// },
|
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
duration: duration.toString(),
|
duration: duration.toString(),
|
||||||
reward: reward.toString(),
|
reward: reward.toString(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user