Commit 14a74aae authored by nanahira's avatar nanahira

playerlist

parent 39d8ef33
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
import { User } from "../src/user"; import { User } from "../src/user";
import fs from "fs"; import fs from "fs";
import { PlayerList } from "../src/playerlist";
async function main() { async function main() {
let html = await fs.promises.readFile("./tests/28_20588.html", "utf-8"); let html = await fs.promises.readFile("./tests/playerlist.html", "utf-8");
console.log(new User("28_20588", html)); console.log(new PlayerList(html));
html = await fs.promises.readFile("./tests/60_46782.html", "utf-8"); html = await fs.promises.readFile("./tests/playerlist-null.html", "utf-8");
console.log(new User("60_46782", html)); console.log(new PlayerList(html));
} }
main(); main();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment