mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
15 lines
407 B
JavaScript
15 lines
407 B
JavaScript
import test from "ava";
|
|
|
|
import { convertId, IdConvertType } from "../built/index.js";
|
|
|
|
test("convert to mastodon id", (t) => {
|
|
t.is(convertId("9gf61ehcxv", IdConvertType.MastodonId), "960365976481219");
|
|
t.is(
|
|
convertId("9fbr9z0wbrjqyd3u", IdConvertType.MastodonId),
|
|
"3954607381600562394",
|
|
);
|
|
t.is(
|
|
convertId("9fbs680oyviiqrol9md73p8g", IdConvertType.MastodonId),
|
|
"3494513243013053824",
|
|
);
|
|
});
|