|
1 | 1 | import { describe, expect, it } from "vitest";
|
2 | 2 | import { BurnerConnector } from "../../src/connectors/burner";
|
3 |
| -import { getBurnerConnector } from "../mocks/mocks"; |
| 3 | +// import { getBurnerConnector } from "../mocks/mocks"; |
4 | 4 |
|
5 |
| -describe("BurnerConnector", () => { |
6 |
| - const burnerObj = new BurnerConnector( |
7 |
| - { |
8 |
| - id: "Burner Account", |
9 |
| - name: "Burner Connector", |
10 |
| - icon: { |
11 |
| - dark: "my-dark-icon", |
12 |
| - light: "my-light-icon", |
13 |
| - }, |
14 |
| - }, |
15 |
| - null |
16 |
| - ); |
| 5 | +// describe("BurnerConnector", () => { |
| 6 | +// const burnerObj = new BurnerConnector( |
| 7 | +// { |
| 8 | +// id: "Burner Account", |
| 9 | +// name: "Burner Connector", |
| 10 | +// icon: { |
| 11 | +// dark: "my-dark-icon", |
| 12 | +// light: "my-light-icon", |
| 13 | +// }, |
| 14 | +// }, |
| 15 | +// null |
| 16 | +// ); |
17 | 17 |
|
18 |
| - it("should test available method", async () => { |
19 |
| - expect(burnerObj.available()).toBe(true); |
20 |
| - }), |
21 |
| - it("should test ready method", async () => { |
22 |
| - expect(await burnerObj.ready()).toBe(true); |
23 |
| - expect(burnerObj.ready()).toBeTypeOf("object"); |
24 |
| - }), |
25 |
| - it("should test connect method", async () => { |
26 |
| - expect(() => burnerObj.connect()).rejects.toThrowError( |
27 |
| - "account not found" |
28 |
| - ); |
29 |
| - }), |
30 |
| - it("should test disconnect method", async () => { |
31 |
| - expect(await burnerObj.disconnect()).toBeUndefined(); |
32 |
| - }), |
33 |
| - it("should test account method", async () => { |
34 |
| - expect(await burnerObj.account()).toBeNull(); |
35 |
| - }), |
36 |
| - it("should test id method", async () => { |
37 |
| - expect(burnerObj.id).toBe("Burner Account"); |
38 |
| - }), |
39 |
| - it("should test name method", async () => { |
40 |
| - expect(burnerObj.name).toBe("Burner Connector"); |
41 |
| - expect(burnerObj.name).toBeTypeOf("string"); |
42 |
| - }), |
43 |
| - it("should test icon method", async () => { |
44 |
| - expect(burnerObj.icon.dark).toBe("my-dark-icon"); |
45 |
| - expect(burnerObj.icon.light).toBe("my-light-icon"); |
46 |
| - }); |
47 |
| -}); |
| 18 | +// it("should test available method", async () => { |
| 19 | +// expect(burnerObj.available()).toBe(true); |
| 20 | +// }), |
| 21 | +// it("should test ready method", async () => { |
| 22 | +// expect(await burnerObj.ready()).toBe(true); |
| 23 | +// expect(burnerObj.ready()).toBeTypeOf("object"); |
| 24 | +// }), |
| 25 | +// it("should test connect method", async () => { |
| 26 | +// expect(() => burnerObj.connect()).rejects.toThrowError( |
| 27 | +// "account not found" |
| 28 | +// ); |
| 29 | +// }), |
| 30 | +// it("should test disconnect method", async () => { |
| 31 | +// expect(await burnerObj.disconnect()).toBeUndefined(); |
| 32 | +// }), |
| 33 | +// it("should test account method", async () => { |
| 34 | +// expect(await burnerObj.account()).toBeNull(); |
| 35 | +// }), |
| 36 | +// it("should test id method", async () => { |
| 37 | +// expect(burnerObj.id).toBe("Burner Account"); |
| 38 | +// }), |
| 39 | +// it("should test name method", async () => { |
| 40 | +// expect(burnerObj.name).toBe("Burner Connector"); |
| 41 | +// expect(burnerObj.name).toBeTypeOf("string"); |
| 42 | +// }), |
| 43 | +// it("should test icon method", async () => { |
| 44 | +// expect(burnerObj.icon.dark).toBe("my-dark-icon"); |
| 45 | +// expect(burnerObj.icon.light).toBe("my-light-icon"); |
| 46 | +// }); |
| 47 | +// }); |
48 | 48 |
|
49 |
| -describe("BurnerConnector2", () => { |
50 |
| - const burnerObj = getBurnerConnector(); |
| 49 | +// describe("BurnerConnector2", () => { |
| 50 | +// const burnerObj = getBurnerConnector(); |
51 | 51 |
|
52 |
| - it("should test available method", async () => { |
53 |
| - expect(burnerObj.available()).toBe(true); |
54 |
| - }), |
55 |
| - it("should test ready method", async () => { |
56 |
| - expect(await burnerObj.ready()).toBe(true); |
57 |
| - expect(burnerObj.ready()).toBeTypeOf("object"); |
58 |
| - }), |
59 |
| - // it("should test connect method", async () => { |
60 |
| - // expect(await burnerObj.connect()).toThrowError("fetch failed"); |
61 |
| - // }), |
62 |
| - it("should test disconnect method", async () => { |
63 |
| - expect(await burnerObj.disconnect()).toBeUndefined(); |
64 |
| - }), |
65 |
| - it("should test account method", async () => { |
66 |
| - expect(await burnerObj.account()).not.toBeNull(); |
67 |
| - }), |
68 |
| - it("should test id method", async () => { |
69 |
| - // console.log(burnerObj.id); |
70 |
| - expect(burnerObj.id).toBe("Burner Account"); //.toEqual(KATANA_PREFUNDED_ADDRESS); |
71 |
| - }), |
72 |
| - it("should test name method", async () => { |
73 |
| - expect(burnerObj.name).toBe("Burner Connector"); |
74 |
| - expect(burnerObj.name).toBeTypeOf("string"); |
75 |
| - }), |
76 |
| - it("should test icon method", async () => { |
77 |
| - expect(burnerObj.icon.dark).toBe("my-dark-icon"); |
78 |
| - expect(burnerObj.icon.light).toBe("my-light-icon"); |
79 |
| - }); |
80 |
| -}); |
| 52 | +// it("should test available method", async () => { |
| 53 | +// expect(burnerObj.available()).toBe(true); |
| 54 | +// }), |
| 55 | +// it("should test ready method", async () => { |
| 56 | +// expect(await burnerObj.ready()).toBe(true); |
| 57 | +// expect(burnerObj.ready()).toBeTypeOf("object"); |
| 58 | +// }), |
| 59 | +// // it("should test connect method", async () => { |
| 60 | +// // expect(await burnerObj.connect()).toThrowError("fetch failed"); |
| 61 | +// // }), |
| 62 | +// it("should test disconnect method", async () => { |
| 63 | +// expect(await burnerObj.disconnect()).toBeUndefined(); |
| 64 | +// }), |
| 65 | +// it("should test account method", async () => { |
| 66 | +// expect(await burnerObj.account()).not.toBeNull(); |
| 67 | +// }), |
| 68 | +// it("should test id method", async () => { |
| 69 | +// // console.log(burnerObj.id); |
| 70 | +// expect(burnerObj.id).toBe("Burner Account"); //.toEqual(KATANA_PREFUNDED_ADDRESS); |
| 71 | +// }), |
| 72 | +// it("should test name method", async () => { |
| 73 | +// expect(burnerObj.name).toBe("Burner Connector"); |
| 74 | +// expect(burnerObj.name).toBeTypeOf("string"); |
| 75 | +// }), |
| 76 | +// it("should test icon method", async () => { |
| 77 | +// expect(burnerObj.icon.dark).toBe("my-dark-icon"); |
| 78 | +// expect(burnerObj.icon.light).toBe("my-light-icon"); |
| 79 | +// }); |
| 80 | +// }); |
0 commit comments