1
0
Fork 0
mirror of https://github.com/pnx/neotest-phpunit synced 2026-06-16 03:54:55 +02:00

Remove leftover notify calls

This commit is contained in:
V13Axel 2024-02-21 09:11:28 -05:00
parent 51217960f8
commit 52f9aab7a2
3 changed files with 2 additions and 17 deletions

View file

@ -1,6 +1,6 @@
MIT License
Copyright (c) 2022 Michael Utz
Copyright (c) 2024 V13Axel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View file

@ -4,20 +4,6 @@ local utils = require('neotest-pest.utils')
local config = require('neotest-pest.config')
local debug = logger.debug
local notify = function(msg, level)
vim.notify(msg, level, {
title = "neotest-pest",
})
end
local error = function(msg)
notify(msg, "error")
end
local info = function(msg)
notify(msg, "info")
end
---@class neotest.Adapter
---@field name string
local NeotestAdapter = { name = "neotest-pest" }

View file

@ -5,7 +5,6 @@ local separator = "::"
---Generate an id which we can use to match Treesitter queries and Pest tests
---@param position neotest.Position The position to return an ID for
---@param namespace neotest.Position[] Any namespaces the position is within
---@return string
M.make_test_id = function(position)
-- Treesitter ID needs to look like 'tests/Unit/ColsHelperTest.php::it returns the proper format'
@ -63,7 +62,7 @@ end
---Make the outputs for a given test
---@param test table
---@param output_file string
---@return table
---@return string, table
local function make_outputs(test, output_file)
logger.debug("Pre-output test:", test)
local test_attr = test["_attr"] or test[1]["_attr"]