Update comment

This commit is contained in:
Jonatan Kłosko 2024-04-02 17:38:48 +07:00
parent 4c695955a6
commit 8e11d6a571
2 changed files with 5 additions and 4 deletions

View file

@ -113,7 +113,7 @@ defmodule Livebook.Session do
created_at: DateTime.t(),
runtime_monitor_ref: reference() | nil,
autosave_timer_ref: reference() | nil,
autosave_path: String.t(),
autosave_path: String.t() | nil,
save_task_ref: reference() | nil,
saved_default_file: FileSystem.File.t() | nil,
memory_usage: memory_usage(),

View file

@ -87,9 +87,10 @@ defmodule LivebookWeb.SettingsLiveTest do
end
describe "autosaving" do
# Autosaving can only be disable by directly changing storage
# but, given some users in the past had autosaving disabled,
# we take that into account.
# Autosaving can only be disabled by directly changing storage,
# which we do for tests. That said, it is a valid setting, so we
# have a UI to enable autosaving back, just in case someone boots
# Livebook with such storage.
test "can be enabled", %{conn: conn} do
{:ok, view, _html} = live(conn, ~p"/settings")