Skip to content

Commit 0caae7d

Browse files
committed
Add test for include keyword
1 parent 1687269 commit 0caae7d

File tree

5 files changed

+12
-1
lines changed

5 files changed

+12
-1
lines changed

box.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author":"John Berquist",
33
"bugs":"https://github.com/jcberquist/commandbox-cfformat/issues",
4-
"cftokens":"v0.10.0",
4+
"cftokens":"v0.10.1",
55
"devDependencies":{
66
"testbox":"^3.0.0"
77
},
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
include template;
2+
include '/my/template.cfm';
3+
include '#template#';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[{}]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
//
2+
include template;
3+
include '/my/template.cfm';
4+
include '#template#';

tests/specs/keywordsSpec.cfc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ component extends=tests.FormatBaseSpec {
1414
it('formats the `throw` keyword', function() {
1515
runTests(loadData('keywordThrow'));
1616
});
17+
it('formats the `include` keyword', function() {
18+
runTests(loadData('keywordInclude'));
19+
});
1720
it('formats case statements', function() {
1821
runTests(loadData('switch'));
1922
});

0 commit comments

Comments
 (0)