From 941de39523ecd612f3ab85d307b53615c3287d11 Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Fri, 9 Dec 2016 08:41:08 -0500 Subject: [PATCH] test importing non-component --- .../import-non-component/_actual.html | 2 ++ .../import-non-component/_expected.html | 2 ++ .../import-non-component/answer.js | 1 + .../import-non-component/main.html | 13 +++++++++++++ .../import-non-component/problems.js | 1 + 5 files changed, 19 insertions(+) create mode 100644 test/server-side-rendering/import-non-component/_actual.html create mode 100644 test/server-side-rendering/import-non-component/_expected.html create mode 100644 test/server-side-rendering/import-non-component/answer.js create mode 100644 test/server-side-rendering/import-non-component/main.html create mode 100644 test/server-side-rendering/import-non-component/problems.js diff --git a/test/server-side-rendering/import-non-component/_actual.html b/test/server-side-rendering/import-non-component/_actual.html new file mode 100644 index 000000000000..e3d27c8e3133 --- /dev/null +++ b/test/server-side-rendering/import-non-component/_actual.html @@ -0,0 +1,2 @@ +
i got 99 problems
+
the answer is 42
\ No newline at end of file diff --git a/test/server-side-rendering/import-non-component/_expected.html b/test/server-side-rendering/import-non-component/_expected.html new file mode 100644 index 000000000000..7d15db249e92 --- /dev/null +++ b/test/server-side-rendering/import-non-component/_expected.html @@ -0,0 +1,2 @@ +
i got 99 problems
+
the answer is 42
diff --git a/test/server-side-rendering/import-non-component/answer.js b/test/server-side-rendering/import-non-component/answer.js new file mode 100644 index 000000000000..888cae37af95 --- /dev/null +++ b/test/server-side-rendering/import-non-component/answer.js @@ -0,0 +1 @@ +module.exports = 42; diff --git a/test/server-side-rendering/import-non-component/main.html b/test/server-side-rendering/import-non-component/main.html new file mode 100644 index 000000000000..7909ec774f89 --- /dev/null +++ b/test/server-side-rendering/import-non-component/main.html @@ -0,0 +1,13 @@ +
i got {{problems}} problems
+
the answer is {{answer}}
+ + diff --git a/test/server-side-rendering/import-non-component/problems.js b/test/server-side-rendering/import-non-component/problems.js new file mode 100644 index 000000000000..4a45ec622264 --- /dev/null +++ b/test/server-side-rendering/import-non-component/problems.js @@ -0,0 +1 @@ +export default 99;