Update targets tests
@@ -3,12 +3,12 @@ Target groups
==============
if erlang {
- import b
+ const a = 1
}
if javascript {
- import a
- import b
+ const a = 1
+ const b = "Hello"
}
---
@@ -16,7 +16,32 @@ if javascript {
(source_file
(target_group
target: (target)
- body: (import))
+ (constant
+ name: (identifier)
+ value: (integer)))
(target_group
target: (target)
- body: (import)))
+ (constant
+ name: (identifier)
+ value: (integer))
+ (constant
+ name: (identifier)
+ value: (string))))
+
+========================
+Target group edge cases
+========================
+
+if erlang {}
+if javascript {const a = 1}
+
+---
+
+(source_file
+ (target_group
+ target: (target))
+ (target_group
+ target: (target)
+ (constant
+ name: (identifier)
+ value: (integer))))
