UNPKG

@juzi/wechaty-puppet-whatsapp

Version:
24 lines 771 B
// import { PuppetWhatsapp } from '../src/mod.js' // import { MemoryCard } from 'memory-card' import { test } from 'tstest'; 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