From 144e3737fc56d2cc779f0b2b98dae95aff3c30b6 Mon Sep 17 00:00:00 2001 From: Vedant Roy Date: Wed, 24 Mar 2021 18:04:59 -0400 Subject: [PATCH] path test --- tests/e2e/add-ext-using-path/base/foo | 0 tests/e2e/add-ext-using-path/cmd.json | 3 +++ tests/e2e/add-ext-using-path/expected.json | 16 ++++++++++++++++ tests/e2e/add-ext-using-path/snippet | 1 + 4 files changed, 20 insertions(+) create mode 100644 tests/e2e/add-ext-using-path/base/foo create mode 100644 tests/e2e/add-ext-using-path/cmd.json create mode 100644 tests/e2e/add-ext-using-path/expected.json create mode 100644 tests/e2e/add-ext-using-path/snippet diff --git a/tests/e2e/add-ext-using-path/base/foo b/tests/e2e/add-ext-using-path/base/foo new file mode 100644 index 0000000..e69de29 diff --git a/tests/e2e/add-ext-using-path/cmd.json b/tests/e2e/add-ext-using-path/cmd.json new file mode 100644 index 0000000..e218b25 --- /dev/null +++ b/tests/e2e/add-ext-using-path/cmd.json @@ -0,0 +1,3 @@ +{ + "params": [{"type": "path", "value": "./snippet"}] +} diff --git a/tests/e2e/add-ext-using-path/expected.json b/tests/e2e/add-ext-using-path/expected.json new file mode 100644 index 0000000..b432954 --- /dev/null +++ b/tests/e2e/add-ext-using-path/expected.json @@ -0,0 +1,16 @@ +{ + "type": "dir", + "name": "temp", + "children": [ + { + "type": "file", + "name": "foo.bar", + "text": "" + }, + { + "type": "dir", + "name": "bar.bar", + "children": [] + } + ] +} diff --git a/tests/e2e/add-ext-using-path/snippet b/tests/e2e/add-ext-using-path/snippet new file mode 100644 index 0000000..701c088 --- /dev/null +++ b/tests/e2e/add-ext-using-path/snippet @@ -0,0 +1 @@ +f.mv(f + ".bar") \ No newline at end of file