mirror of
https://github.com/chatmail/core.git
synced 2026-05-04 13:56:30 +03:00
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:
@@ -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": {
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user