aboutsummaryrefslogtreecommitdiff
path: root/test/compress/2020-01-16import: cran: Avoid uses of '@@' in the tests....* guix/import/cran.scm (description->alist, description->package): Export. <top level>: Set! 'listify'. * tests/cran.scm (description-alist, "description->package"): Remove use of '@@' to access the relevant bindings. Ludovic Courtès ption>space:mode:
Diffstat (limited to 'test/compress/awaits.js')
-rw-r--r--test/compress/awaits.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/compress/awaits.js b/test/compress/awaits.js
index 7ae753fb..8caa60c0 100644
--- a/test/compress/awaits.js
+++ b/test/compress/awaits.js
@@ -1,3 +1,27 @@
+async_arrow: {
+ input: {
+ (async a => console.log(a))("PASS");
+ console.log(typeof (async () => 42)());
+ }
+ expect_exact: '(async a=>console.log(a))("PASS");console.log(typeof(async()=>42)());'
+ expect_stdout: [
+ "PASS",
+ "object",
+ ]
+ node_version: ">=8"
+}
+
+async_label: {
+ input: {
+ (async function() {
+ async: console.log("PASS");
+ })();
+ }
+ expect_exact: '(async function(){async:console.log("PASS")})();'
+ expect_stdout: "PASS"
+ node_version: ">=8"
+}
+
await_await: {
input: {
(async function() {