mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-06 03:34:57 +08:00
Fix tests on windows
This commit is contained in:
parent
1bf9b8fa9c
commit
7de7911d32
2 changed files with 6 additions and 6 deletions
|
@ -1122,16 +1122,16 @@ defmodule Livebook.LiveMarkdown.ExportTest do
|
||||||
end
|
end
|
||||||
|
|
||||||
test "persists hub id when not default" do
|
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 = %{
|
||||||
Notebook.new()
|
Notebook.new()
|
||||||
| name: "My Notebook",
|
| name: "My Notebook",
|
||||||
hub_id: "enterprise-persisted-id"
|
hub_id: "fly-persisted-id"
|
||||||
}
|
}
|
||||||
|
|
||||||
expected_document = """
|
expected_document = """
|
||||||
<!-- livebook:{"hub_id":"enterprise-persisted-id"} -->
|
<!-- livebook:{"hub_id":"fly-persisted-id"} -->
|
||||||
|
|
||||||
# My Notebook
|
# My Notebook
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -721,17 +721,17 @@ defmodule Livebook.LiveMarkdown.ImportTest do
|
||||||
end
|
end
|
||||||
|
|
||||||
test "imports notebook hub id when exists" do
|
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 = """
|
markdown = """
|
||||||
<!-- livebook:{"hub_id":"enterprise-persisted-id"} -->
|
<!-- livebook:{"hub_id":"fly-persisted-id"} -->
|
||||||
|
|
||||||
# My Notebook
|
# My Notebook
|
||||||
"""
|
"""
|
||||||
|
|
||||||
{notebook, []} = Import.notebook_from_livemd(markdown)
|
{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
|
end
|
||||||
|
|
||||||
test "imports ignores hub id when does not exist" do
|
test "imports ignores hub id when does not exist" do
|
||||||
|
|
Loading…
Add table
Reference in a new issue