feat: refactor file structure
This commit is contained in:
parent
9761cded88
commit
965e47a1df
17 changed files with 19 additions and 22 deletions
|
|
@ -1,5 +1,5 @@
|
|||
describe('ansi parser', function()
|
||||
local ansi = require('cp.ansi')
|
||||
local ansi = require('cp.ui.ansi')
|
||||
|
||||
describe('bytes_to_string', function()
|
||||
it('returns string as-is', function()
|
||||
|
|
@ -224,7 +224,6 @@ describe('ansi parser', function()
|
|||
ansi.setup_highlight_groups()
|
||||
|
||||
local highlight = vim.api.nvim_get_hl(0, { name = 'CpAnsiRed' })
|
||||
-- When 'NONE' is set, nvim_get_hl returns nil for that field
|
||||
assert.is_nil(highlight.fg)
|
||||
|
||||
for i = 0, 15 do
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ describe('cp.diff', function()
|
|||
|
||||
before_each(function()
|
||||
spec_helper.setup()
|
||||
diff = require('cp.diff')
|
||||
diff = require('cp.ui.diff')
|
||||
end)
|
||||
|
||||
after_each(function()
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ describe('cp.execute', function()
|
|||
|
||||
before_each(function()
|
||||
spec_helper.setup()
|
||||
execute = require('cp.execute')
|
||||
execute = require('cp.runner.execute')
|
||||
mock_system_calls = {}
|
||||
temp_files = {}
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ describe('extmarks', function()
|
|||
|
||||
before_each(function()
|
||||
spec_helper.setup()
|
||||
highlight = require('cp.highlight')
|
||||
highlight = require('cp.ui.highlight')
|
||||
end)
|
||||
|
||||
after_each(function()
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ describe('cp.highlight', function()
|
|||
|
||||
before_each(function()
|
||||
spec_helper.setup()
|
||||
highlight = require('cp.highlight')
|
||||
highlight = require('cp.ui.highlight')
|
||||
end)
|
||||
|
||||
after_each(function()
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
describe('cp.run_render', function()
|
||||
local run_render = require('cp.run_render')
|
||||
local run_render = require('cp.runner.run_render')
|
||||
local spec_helper = require('spec.spec_helper')
|
||||
|
||||
before_each(function()
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
describe('run module', function()
|
||||
local run = require('cp.run')
|
||||
local run = require('cp.runner.run')
|
||||
|
||||
describe('basic functionality', function()
|
||||
it('has required functions', function()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue