diff --git a/CHANGELOG.md b/CHANGELOG.md index 95a37ca8..1acb597e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ ### Internals - Remove npm script to publish - Integrate devenv into nix flakes +- Move `switch-plugin` from `tests` directory into `src/plugins` --- ## v0.6.0 (2024-03-27) diff --git a/tests/switch-plugin/index.js b/src/plugins/switch-plugin/index.js similarity index 97% rename from tests/switch-plugin/index.js rename to src/plugins/switch-plugin/index.js index d77156c6..8b29b396 100644 --- a/tests/switch-plugin/index.js +++ b/src/plugins/switch-plugin/index.js @@ -5,7 +5,7 @@ const { printSingleTwigTag, indentWithHardline, isEmptySequence -} = require("../../src/util"); +} = require("../../util"); const { Node } = require("melody-types"); const printSwitch = (node, path, print) => { diff --git a/tests/GenericTagCustomPrint/jsfmt.spec.js b/tests/GenericTagCustomPrint/jsfmt.spec.js index d277ffdf..0b9a0be6 100644 --- a/tests/GenericTagCustomPrint/jsfmt.spec.js +++ b/tests/GenericTagCustomPrint/jsfmt.spec.js @@ -1,4 +1,4 @@ run_spec(__dirname, ["melody"], { twigMultiTags: ["switch,case,default,endswitch"], - twigMelodyPlugins: ["tests/switch-plugin"] + twigMelodyPlugins: ["src/plugins/switch-plugin"] });