UNPKG

mailsac-v2

Version:
36 lines (29 loc) 798 B
import * as chai from "chai"; import * as chaiAsPromised from "chai-as-promised"; import * as config from "config"; import * as mocha from "mocha"; import { Client } from "../dist/mailsac-v2"; chai.use(chaiAsPromised); const expect = chai.expect; const assert = chai.assert; let publicClient: Client; let privateClient: Client; before((done) => { publicClient = new Client(); privateClient = new Client(config.get("MAILSAC_API_KEY")); done(); }); describe("Attachments PUBLIC CLIENT", () => { // }); describe("User PRIVATE CLIENT", () => { it("should get attachments", () => { return assert.isFulfilled( privateClient.getAttachments( "azefaefafaezf@mailsac.com", "RS34MfYnj5niVvETiu0OgelGMWHnoIWe-0" ) ); }); // TODO: Download attachment });