From 52f9aab7a2b66946e50735d6284c6e58716faf86 Mon Sep 17 00:00:00 2001 From: V13Axel Date: Wed, 21 Feb 2024 09:11:28 -0500 Subject: [PATCH] Remove leftover notify calls --- LICENSE | 2 +- lua/neotest-pest/init.lua | 14 -------------- lua/neotest-pest/utils.lua | 3 +-- 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/LICENSE b/LICENSE index 2d2484d..f21f3ea 100644 --- a/LICENSE +++ b/LICENSE @@ -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 diff --git a/lua/neotest-pest/init.lua b/lua/neotest-pest/init.lua index 9bff8dc..954144a 100644 --- a/lua/neotest-pest/init.lua +++ b/lua/neotest-pest/init.lua @@ -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" } diff --git a/lua/neotest-pest/utils.lua b/lua/neotest-pest/utils.lua index 2030a59..ea80a68 100644 --- a/lua/neotest-pest/utils.lua +++ b/lua/neotest-pest/utils.lua @@ -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"]