Skip to content

Commit 0e45c22

Browse files
authored
fix: remove faulty test (#6880)
The test was still WIP but got merged together with the fix. I suggest to keep the fix in main and add the test in a follow-up RP. The test should suffice becaues I tested it manually.
1 parent 81a6afd commit 0e45c22

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

deltachat-jsonrpc/typescript/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"dependencies": {
44
"@deltachat/tiny-emitter": "3.0.0",
55
"isomorphic-ws": "^4.0.1",
6-
"tmp": "^0.2.3",
76
"yerpc": "^0.6.2"
87
},
98
"devDependencies": {

deltachat-jsonrpc/typescript/test/basic.ts

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import chai, { assert, expect } from "chai";
22
import chaiAsPromised from "chai-as-promised";
3-
import { fileSync } from "tmp";
43
chai.use(chaiAsPromised);
54
import { StdioDeltaChat as DeltaChat } from "../deltachat.js";
65

@@ -100,32 +99,6 @@ describe("basic tests", () => {
10099
});
101100
});
102101

103-
describe("webxdc", function () {
104-
let invalidXdcPath: string;
105-
let accountId: number;
106-
107-
before(async () => {
108-
const tmpFile = fileSync({ postfix: ".xdc" });
109-
invalidXdcPath = tmpFile.name;
110-
accountId = await dc.rpc.addAccount();
111-
});
112-
113-
it("should be able to draft set an invalid xdc", async function () {
114-
const chat = await dc.rpc.createGroupChat(accountId, "xdc", false);
115-
await expect(
116-
dc.rpc.miscSetDraft(
117-
accountId,
118-
chat,
119-
"",
120-
invalidXdcPath,
121-
"invalid.xdc",
122-
null,
123-
null
124-
)
125-
).to.be.eventually.rejectedWith("Invalid xdc");
126-
});
127-
});
128-
129102
describe("configuration", function () {
130103
let accountId: number;
131104
before(async () => {

0 commit comments

Comments
 (0)