Skip to content

Commit

Permalink
feat: Updated test/plugin_spec.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Oct 25, 2023
1 parent 6370b36 commit ce99895
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions test/plugin_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,44 @@ describe('Hurl.nvim plugin', function()
assert.are.same('split', _HURL_CFG.mode)
assert.are.same(true, _HURL_CFG.debug)
end)

describe('Utility functions', function()
local utils = require('hurl.utils')

it('should correctly log info', function()
-- TODO: add a test to check log_info function
end)

it('should correctly log error', function()
-- TODO: add a test to check log_error function
end)

it('should correctly get visual selection', function()
-- TODO: add a test to check get_visual_selection function
end)

it('should correctly create tmp file', function()
-- TODO: add a test to check create_tmp_file function
end)

it('should correctly create custom command', function()
-- TODO: add a test to check create_cmd function
end)

it('should correctly format the body of the request', function()
-- TODO: add a test to check format function
end)

it('should correctly render header table', function()
-- TODO: add a test to check render_header_table function
end)

it('should correctly check if the response is json', function()
-- TODO: add a test to check is_json_response function
end)

it('should correctly check if the response is html', function()
-- TODO: add a test to check is_html_response function
end)
end)
end)

0 comments on commit ce99895

Please sign in to comment.