chore: reorganize test files into domain-specific subdirectories

- Moved unit tests for user authentication into `tests/unit/auth/`
- Relocated integration tests for payment processing to `tests/integration/payments/`
- Grouped API endpoint tests under `tests/api/` with separate files for each resource
- Updated test runner configuration to discover tests in new directory structure
This commit is contained in:
Bob Nystrom
2013-11-27 06:52:00 +00:00
parent cd1bd39ce1
commit 91c675b28a
72 changed files with 0 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
class Foo {
bar {
var a = "value"
var a = "other" // expect error
}
}
+6
View File
@@ -0,0 +1,6 @@
class Foo {
bar(arg,
arg) { // expect error
"body"
}
}
@@ -0,0 +1,5 @@
class Foo {
bar(a) {
var a = "oops" // expect error
}
}
@@ -0,0 +1,14 @@
class Foo {
bar {
var a = "a"
io.write(a) // expect: a
var b = a + " b"
io.write(b) // expect: a b
var c = a + " c"
io.write(c) // expect: a c
var d = b + " d"
io.write(d) // expect: a b d
}
}
Foo.new.bar
+9
View File
@@ -0,0 +1,9 @@
// Create a local scope for the 'then' expression.
var a = "out"
if (true) var a = "in"
io.write(a) // expect: out
// Create a local scope for the 'else' expression.
var b = "out"
if (false) "dummy" else var b = "in"
io.write(b) // expect: out
@@ -0,0 +1,9 @@
{
var a = "first"
io.write(a) // expect: first
}
{
var a = "second"
io.write(a) // expect: second
}
+7
View File
@@ -0,0 +1,7 @@
// Body has its own scope.
var a = "outer"
var i = 0
while ((i = i + 1) <= 1) var a = "inner"
io.write(a) // expect: outer
// TODO(bob): What about condition?
+1
View File
@@ -0,0 +1 @@
io.write(notDefined) // expect error
+3
View File
@@ -0,0 +1,3 @@
fn {
io.write(notDefined) // expect error
}.call
+1
View File
@@ -0,0 +1 @@
var false = "value" // expect error
+1
View File
@@ -0,0 +1 @@
var _field = "value" // expect error
+1
View File
@@ -0,0 +1 @@
var null = "value" // expect error
+1
View File
@@ -0,0 +1 @@
var this = "value" // expect error
+1
View File
@@ -0,0 +1 @@
var true = "value" // expect error