Skip to content

Commit 0e94a6f

Browse files
authored
Merge pull request #47 from olehermanse/main
Fixed namespace linting test
2 parents d90455b + 0dd290f commit 0e94a6f

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

tests/lint/008_namespace.cf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ bundle agent target(a)
1111

1212
bundle agent helper
1313
{
14-
vars:
15-
"x" string => mylib:target("arg");
14+
methods:
15+
"x" usebundle => mylib:target("arg");
1616
}
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
vars:
3-
"x" string => default:target("arg");
4-
^------------^
5-
Error: Call to unknown function / bundle / body 'default:target' at tests/lint/008_namespace.x.cf:15:19
2+
methods:
3+
"x" usebundle => default:target("arg");
4+
^------------^
5+
Error: Call to unknown function / bundle / body 'default:target' at tests/lint/008_namespace.x.cf:15:22
66
FAIL: tests/lint/008_namespace.x.cf (1 error)
77
Failure, 1 error in total.

tests/lint/008_namespace.x.cf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ bundle agent target(a)
1111

1212
bundle agent helper
1313
{
14-
vars:
15-
"x" string => default:target("arg");
14+
methods:
15+
"x" usebundle => default:target("arg");
1616
}

0 commit comments

Comments
 (0)