2023-04-07 10:56:46 +09:00
|
|
|
import test from "ava";
|
2023-03-31 10:58:28 +09:00
|
|
|
|
2023-05-29 09:24:48 +09:00
|
|
|
import { convertId, IdConvertType } from "../built/index.js";
|
2023-03-31 10:58:28 +09:00
|
|
|
|
2023-05-29 09:24:48 +09:00
|
|
|
test("convert to mastodon id", (t) => {
|
|
|
|
t.is(convertId("9gf61ehcxv", IdConvertType.MastodonId), "960365976481219");
|
2023-05-30 01:31:02 +09:00
|
|
|
t.is(
|
|
|
|
convertId("9fbr9z0wbrjqyd3u", IdConvertType.MastodonId),
|
|
|
|
"3954607381600562394",
|
|
|
|
);
|
|
|
|
t.is(
|
|
|
|
convertId("9fbs680oyviiqrol9md73p8g", IdConvertType.MastodonId),
|
|
|
|
"3494513243013053824",
|
|
|
|
);
|
2023-04-07 10:56:46 +09:00
|
|
|
});
|