12 lines
398 B
TypeScript
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));
|
|
}); |