mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-10 09:03:02 +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
|
||||
|
||||
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
|
||||
"""
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue