my-bandai/test/login.test.ts
2026-03-21 14:43:51 +09:00

12 lines
428 B
TypeScript

import { test, expect } from "bun:test";
import Bandai from "../src/Bandai";
import { getBandaiRawCookieRedisKey, 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(getBandaiRawCookieRedisKey(email));
expect(cookie).toBeDefined();
});