Skip to content

Commit

Permalink
test: fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rcarriga committed Dec 22, 2023
1 parent ba1f59d commit 27a6649
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/unit/init_spec.lua
Expand Up @@ -17,7 +17,7 @@ describe("checking public interface", function()

describe("notifications", function()
it("returns all previous notifications", function()
notify("test", "error")
notify.notify("test", "error")
local notifs = notify.history()
assert.are.same({
{
Expand Down Expand Up @@ -60,8 +60,8 @@ describe("checking public interface", function()

describe("replacing", function()
it("inherits options", function()
local orig = notify("first", "info", { title = "test", icon = "x" })
local next = notify("second", nil, { replace = orig })
local orig = notify.notify("first", "info", { title = "test", icon = "x" })
local next = notify.notify("second", nil, { replace = orig })

assert.are.same(
next,
Expand Down

0 comments on commit 27a6649

Please sign in to comment.