kaiqiu-rank-list/__test__/xcxapi.test.ts
kyuuseiryuu 2f82a4edf5 feat(Profile)
- add react-router
2026-01-28 13:00:48 +09:00

12 lines
398 B
TypeScript

import { test, expect } from 'bun:test';
import { getAdvProfile } from '../src/utils';
import fs from 'fs';
import path from 'path';
test('Test profile', async () => {
const uid = '73276';
const profile = await getAdvProfile(uid);
console.log(profile)
expect(profile).not.toBe(null)
fs.writeFileSync(path.resolve(__dirname, 'data', 'profile.json'), JSON.stringify(profile, null, 2));
});