Fix tests on windows

This commit is contained in:
Jonatan Kłosko 2023-03-15 18:27:41 +01:00
parent 1bf9b8fa9c
commit 7de7911d32
2 changed files with 6 additions and 6 deletions

View file

@ -1122,16 +1122,16 @@ defmodule Livebook.LiveMarkdown.ExportTest do
end
test "persists hub id when not default" do
Livebook.Factory.insert_hub(:enterprise, id: "enterprise-persisted-id")
Livebook.Factory.insert_hub(:fly, id: "fly-persisted-id")
notebook = %{
Notebook.new()
| name: "My Notebook",
hub_id: "enterprise-persisted-id"
hub_id: "fly-persisted-id"
}
expected_document = """
<!-- livebook:{"hub_id":"enterprise-persisted-id"} -->
<!-- livebook:{"hub_id":"fly-persisted-id"} -->
# My Notebook
"""

View file

@ -721,17 +721,17 @@ defmodule Livebook.LiveMarkdown.ImportTest do
end
test "imports notebook hub id when exists" do
Livebook.Factory.insert_hub(:fly, id: "enterprise-persisted-id")
Livebook.Factory.insert_hub(:fly, id: "fly-persisted-id")
markdown = """
<!-- livebook:{"hub_id":"enterprise-persisted-id"} -->
<!-- livebook:{"hub_id":"fly-persisted-id"} -->
# My Notebook
"""
{notebook, []} = Import.notebook_from_livemd(markdown)
assert %Notebook{name: "My Notebook", hub_id: "enterprise-persisted-id"} = notebook
assert %Notebook{name: "My Notebook", hub_id: "fly-persisted-id"} = notebook
end
test "imports ignores hub id when does not exist" do