blob: ddd2cfbd4d6fa265c49eb1d8903c7547273608f8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# Pleroma: A lightweight social networking server
# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.MigrationHelper.ObjectIdTest do
use Pleroma.DataCase, async: true
alias Pleroma.MigrationHelper.ObjectId
test "flake_from_time/1" do
now = NaiveDateTime.utc_now()
id = ObjectId.flake_from_time(now)
assert FlakeId.flake_id?(id)
end
end
|