Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Commit 75d90a2

Browse files
committed
Note verbose syntax in unit test
1 parent ee6fcfc commit 75d90a2

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

test/pattern_assembler_tests.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@
1414

1515
test.expect(14);
1616

17-
//setup current pattern from what we would have during execution
18-
var currentPattern = of.oPattern.create(
17+
// setup current pattern from what we would have during execution
18+
// docs on partial syntax are here:
19+
// http://patternlab.io/docs/pattern-including.html
20+
var currentPattern = of.oPattern.create(
1921
'/home/fakeuser/pl/source/_patterns/01-molecules/00-testing/00-test-mol.mustache', // abspath
2022
'01-molecules\\00-testing', // subdir
2123
'00-test-mol.mustache', // filename,
@@ -30,15 +32,14 @@
3032
"{{> molecules-single-comment(description: 'A life isn\\'t like a garden. Perfect moments can be had, but not preserved, except in memory.') }}" +
3133
'{{> molecules-single-comment(description: "A life is like a \\"garden\\". Perfect moments can be had, but not preserved, except in memory.") }}' +
3234
"{{> molecules-single-comment:foo }}" +
33-
// questionable: is a partial call with a file extension really
34-
// permitted? seems like no, based on
35-
// http://patternlab.io/docs/pattern-including.html
35+
// verbose partial syntax, introduced in v0.12.0, with file extension
3636
"{{> 01-molecules/06-components/03-comment-header.mustache }}" +
3737
"{{> 01-molecules/06-components/02-single-comment.mustache(description: 'A life is like a garden. Perfect moments can be had, but not preserved, except in memory.') }}" +
3838
"{{> molecules-single-comment:foo }}" +
3939
"{{>atoms-error(message: 'That\\'s no moon...')}}" +
4040
'{{>atoms-error(message: \'That\\\'s no moon...\')}}' +
4141
"{{> 00-atoms/00-global/ }}" +
42+
// verbose partial syntax, introduced in v0.12.0, no file extension
4243
"{{> 00-atoms/00-global/06-test }}"
4344
}
4445
);

0 commit comments

Comments
 (0)