mirror of
https://github.com/logos-storage/logos-storage-js.git
synced 2026-01-02 13:33:07 +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) => {
|
||||
// const spy = vi.spyOn(Fetch, "safe");
|
||||
it("returns a success when trying to setup the log level with a correct value", async (t) => {
|
||||
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: true });
|
||||
// });
|
||||
assert.deepStrictEqual(response, { error: false, data: "" });
|
||||
});
|
||||
});
|
||||
|
||||
@ -220,9 +220,6 @@ export class CodexMarketplace {
|
||||
|
||||
const res = await Fetch.safe(url, {
|
||||
method: "POST",
|
||||
// headers: {
|
||||
// "content-type": "application/json",
|
||||
// },
|
||||
body: JSON.stringify({
|
||||
duration: duration.toString(),
|
||||
reward: reward.toString(),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user