my-bandai/test/login.test.ts
2026-03-21 13:07:38 +09:00

12 lines
422 B
TypeScript

import { test, expect } from "bun:test";
import Bandai from "../src/Bandai";
import { getBandaiCookieRedisKey, redis } from "../src/utils";
test('Test login', async () => {
const email = 'allin-603@outlook.com';
const password = '123456789qw';
const account = new Bandai(email, password);
await account.login();
const cookie = await redis.get(getBandaiCookieRedisKey(email));
expect(cookie).toBeDefined();
});