Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jul 19, 2024
1 parent 188fb16 commit a835f54
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions denops/dpp/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,21 @@ Deno.test("parseHooksFile", () => {
},
);

assertEquals(
parseHooksFile("{{{,}}}", [
'" hook_add {{{',
"comment1 {{{",
'" }}}',
"comment2 {{{",
'" }}}',
'" }}}',
]),
{
hook_add: 'comment1 {{{\n" }}}\ncomment2 {{{\n" }}}',
ftplugin: {},
},
);

// Lua
assertEquals(
parseHooksFile("{{{,}}}", [
Expand Down

0 comments on commit a835f54

Please sign in to comment.