mvllow / modes.nvim

Prismatic line decorations for the adventurous vim user
567 stars 14 forks source link

Modes testing #27

Closed PriceHiller closed 2 years ago

PriceHiller commented 2 years ago

Some very basic tests setup for only the modes.lua primary file regarding #26. Still need to create tests for utils.lua, but this helps test for some issues with say removing fallbacks ๐Ÿ˜‰. Something that may want to be considered that should improve or at least help with testing is allowing default_colors to be accessed in M and shifting events into autocommands kind of like I have it over on my other branch here, although I consider it somewhat dirty.

Other tests that need to be created for modes.lua is checking the highlights as they are set from each mode. To test that I have included a feedkeys wrapper test_utils which should be passed x! mode to maintain the correct key insert for the mode.

PriceHiller commented 2 years ago

Alright, I went ahead and bundled all of that up into some commits. Thanks for the review, as you can tell I'm not much of a writer๐Ÿ–Š๏ธ. If you see anything else out of place I'd be happy to make further modifications.

mvllow commented 2 years ago

Thanks so much ๐Ÿ’œ