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.
This commit is contained in:
Sebastian Klähn
2025-05-28 17:43:05 +02:00
committed by GitHub
parent 81a6afde15
commit 0e45c2246f
2 changed files with 0 additions and 28 deletions

View File

@@ -3,7 +3,6 @@
"dependencies": {
"@deltachat/tiny-emitter": "3.0.0",
"isomorphic-ws": "^4.0.1",
"tmp": "^0.2.3",
"yerpc": "^0.6.2"
},
"devDependencies": {

View File

@@ -1,6 +1,5 @@
import chai, { assert, expect } from "chai";
import chaiAsPromised from "chai-as-promised";
import { fileSync } from "tmp";
chai.use(chaiAsPromised);
import { StdioDeltaChat as DeltaChat } from "../deltachat.js";
@@ -100,32 +99,6 @@ describe("basic tests", () => {
});
});
describe("webxdc", function () {
let invalidXdcPath: string;
let accountId: number;
before(async () => {
const tmpFile = fileSync({ postfix: ".xdc" });
invalidXdcPath = tmpFile.name;
accountId = await dc.rpc.addAccount();
});
it("should be able to draft set an invalid xdc", async function () {
const chat = await dc.rpc.createGroupChat(accountId, "xdc", false);
await expect(
dc.rpc.miscSetDraft(
accountId,
chat,
"",
invalidXdcPath,
"invalid.xdc",
null,
null
)
).to.be.eventually.rejectedWith("Invalid xdc");
});
});
describe("configuration", function () {
let accountId: number;
before(async () => {