This commit is contained in:
Kian-Meng Ang 2022-06-13 00:10:37 +08:00 committed by GitHub
parent 5fd896409d
commit b18a93af93
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 15 additions and 15 deletions

View file

@ -34,7 +34,7 @@ COPY README.md README.md
RUN mix do compile, release livebook
# Stage 2
# Prepares the runtime environment and copies over the relase.
# Prepares the runtime environment and copies over the release.
# We use the same base image, because we need Erlang, Elixir and Mix
# during runtime to spawn the Livebook standalone runtimes.
# Consequently the release doesn't include ERTS as we have it anyway.

View file

@ -83,7 +83,7 @@ with [Nerves](https://www.nerves-project.org/).
### Direct installation with Elixir
You can run Livebook on your own machine using just ELixir. You will need
You can run Livebook on your own machine using just Elixir. You will need
[Elixir v1.13](https://elixir-lang.org/install.html) or later.
Livebook also requires the following Erlang applications: `inets`,
`os_mon`, `runtime_tools`, `ssl` and `xmerl`. Those applications come

View file

@ -357,7 +357,7 @@ defmodule Livebook.FileSystem.LocalTest do
end
@tag :tmp_dir
test "returns an error when the souce file does not exist", %{tmp_dir: tmp_dir} do
test "returns an error when the source file does not exist", %{tmp_dir: tmp_dir} do
file_system = Local.new()
src_file_path = Path.join(tmp_dir, "src_file.txt")
dest_file_path = Path.join(tmp_dir, "dest_file.txt")
@ -367,7 +367,7 @@ defmodule Livebook.FileSystem.LocalTest do
end
@tag :tmp_dir
test "returns an error when the desination file exists", %{tmp_dir: tmp_dir} do
test "returns an error when the destination file exists", %{tmp_dir: tmp_dir} do
create_tree!(tmp_dir,
"src_file.txt": "content",
"dest_file.txt": "content"

View file

@ -79,7 +79,7 @@ defmodule Livebook.FileSystem.S3Test do
describe "FileSystem.list/3" do
test "returns an error when a nonexistent directory is given", %{bypass: bypass} do
# When the directory doesn't exist, we get an empty list of maches
# When the directory doesn't exist, we get an empty list of matches
Bypass.expect_once(bypass, "GET", "/mybucket", fn conn ->
assert %{"delimiter" => "/"} = conn.params
@ -549,7 +549,7 @@ defmodule Livebook.FileSystem.S3Test do
end
end
test "returns an error when the desination file exists", %{bypass: bypass} do
test "returns an error when the destination file exists", %{bypass: bypass} do
# Existence is verified by listing
Bypass.expect_once(bypass, "GET", "/mybucket", fn conn ->
assert %{"prefix" => "dest_file.txt", "delimiter" => "/"} = conn.params

View file

@ -374,7 +374,7 @@ defmodule Livebook.LiveMarkdown.MarkdownHelpersTest do
# by comparing against the original content.
defp reformat(markdown) do
# Note: we don't parse inline content, so some of the tests
# above are not stricly necessary, but we keep them for completeness.
# above are not strictly necessary, but we keep them for completeness.
{:ok, ast, []} = MarkdownHelpers.markdown_to_block_ast(markdown)
MarkdownHelpers.markdown_from_ast(ast)
end

View file

@ -354,7 +354,7 @@ defmodule Livebook.NotebookTest do
} = Notebook.add_cell_output(notebook, "c1", {:stdout, "\ramigo!\r"})
end
test "updates existing frames on frame update ouptut" do
test "updates existing frames on frame update output" do
notebook = %{
Notebook.new()
| sections: [

View file

@ -51,7 +51,7 @@ defmodule Livebook.SessionTest do
end
describe "insert_section/2" do
test "sends an insert opreation to subscribers", %{session: session} do
test "sends an insert operation to subscribers", %{session: session} do
Session.subscribe(session.id)
pid = self()
@ -61,7 +61,7 @@ defmodule Livebook.SessionTest do
end
describe "insert_cell/4" do
test "sends an insert opreation to subscribers", %{session: session} do
test "sends an insert operation to subscribers", %{session: session} do
Session.subscribe(session.id)
pid = self()
@ -74,7 +74,7 @@ defmodule Livebook.SessionTest do
end
describe "delete_section/3" do
test "sends a delete opreation to subscribers", %{session: session} do
test "sends a delete operation to subscribers", %{session: session} do
Session.subscribe(session.id)
pid = self()
@ -86,7 +86,7 @@ defmodule Livebook.SessionTest do
end
describe "delete_cell/2" do
test "sends a delete opreation to subscribers", %{session: session} do
test "sends a delete operation to subscribers", %{session: session} do
Session.subscribe(session.id)
pid = self()
@ -98,7 +98,7 @@ defmodule Livebook.SessionTest do
end
describe "restore_cell/2" do
test "sends a restore opreation to subscribers", %{session: session} do
test "sends a restore operation to subscribers", %{session: session} do
Session.subscribe(session.id)
pid = self()
@ -111,7 +111,7 @@ defmodule Livebook.SessionTest do
end
describe "convert_smart_cell/2" do
test "sends a delete and insert opreations to subscribers" do
test "sends a delete and insert operations to subscribers" do
smart_cell = %{Notebook.Cell.new(:smart) | kind: "text", source: "content"}
section = %{Notebook.Section.new() | cells: [smart_cell]}
notebook = %{Notebook.new() | sections: [section]}

View file

@ -196,7 +196,7 @@ defmodule LivebookWeb.SessionControllerTest do
assert conn.resp_body == "Not found"
end
test "returns the requestes asset if available in cache", %{conn: conn} do
test "returns the requests asset if available in cache", %{conn: conn} do
%{notebook: notebook, hash: hash} = notebook_with_js_output()
# Fetch the assets for the first time
conn = start_session_and_request_asset(conn, notebook, hash)