UNPKG

@juzi/wechaty-puppet-whatsapp

Version:
26 lines 867 B
"use strict"; // import { PuppetWhatsapp } from '../src/mod.js' Object.defineProperty(exports, "__esModule", { value: true }); // import { MemoryCard } from 'memory-card' const tstest_1 = require("tstest"); (0, tstest_1.test)('memory test', async (t) => { // const memory = new MemoryCard('test-MC') // const puppet = new PuppetWhatsapp({ // memory, // }) // puppet.on('scan', () => { // void puppet.stop() // }) // await puppet.start() // .then(() => { // t.ok((puppet.memory as any).payload !== undefined, 'memory is loaded') // t.pass('memory test pass') // return null // }) // .catch(async e => { // await puppet.stop() // t.fail(`cannot start puppet due to ${e as any}`) // }) t.ok(true, 'skip memory test'); }); //# sourceMappingURL=memory-card.spec.js.map