Skip to content

Commit

Permalink
Added test
Browse files Browse the repository at this point in the history
  • Loading branch information
petaki committed Feb 17, 2023
1 parent f42d1cd commit e8916c7
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions inertia_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,13 @@ func TestIsSsrEnabled(t *testing.T) {
t.Error("expected: true, got: false")
}
}

func TestDisableSsr(t *testing.T) {
i := New("", "", "")
i.EnableSsrWithDefault()
i.DisableSsr()

if i.IsSsrEnabled() {
t.Error("expected: false, got: true")
}
}

0 comments on commit e8916c7

Please # to comment.