|
7 | 7 |
|
8 | 8 | exports['pattern_assembler'] = {
|
9 | 9 | 'find_pattern_partials finds partials' : function(test){
|
10 |
| - test.expect(13); |
| 10 | + // NOTES from GTP: |
| 11 | + // it's nice to have so much test coverage, but it retrospect, I'm not |
| 12 | + // happy with the structure I wound up with in this test; it's too |
| 13 | + // difficult to add test cases and test failure reporting is not very |
| 14 | + // granular. |
| 15 | + |
| 16 | + test.expect(14); |
11 | 17 |
|
12 | 18 | //setup current pattern from what we would have during execution
|
13 | 19 | var currentPattern = of.oPattern.create(
|
|
29 | 35 | "{{> 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.') }}" +
|
30 | 36 | "{{> molecules-single-comment:foo }}" +
|
31 | 37 | "{{>atoms-error(message: 'That\\'s no moon...')}}" +
|
32 |
| - '{{>atoms-error(message: \'That\\\'s no moon...\')}}' |
| 38 | + '{{>atoms-error(message: \'That\\\'s no moon...\')}}' + |
| 39 | + "{{> 00-atoms/00-global/ }}" + |
| 40 | + "{{> 00-atoms/00-global/06-test }}" |
33 | 41 | }
|
34 | 42 | );
|
35 | 43 |
|
36 | 44 | var results = currentPattern.findPartials();
|
37 | 45 | console.log(results);
|
38 |
| - test.equals(results.length, 12); |
| 46 | + test.equals(results.length, 13); |
39 | 47 | test.equals(results[0], "{{> molecules-comment-header}}");
|
40 | 48 | test.equals(results[1], "{{> molecules-comment-header}}");
|
41 | 49 | test.equals(results[2], "{{> \n molecules-comment-header\n}}");
|
|
48 | 56 | test.equals(results[9], "{{> molecules-single-comment:foo }}");
|
49 | 57 | test.equals(results[10], "{{>atoms-error(message: 'That\\'s no moon...')}}");
|
50 | 58 | test.equals(results[11], "{{>atoms-error(message: 'That\\'s no moon...')}}");
|
| 59 | + test.equals(results[12], "{{> 00-atoms/00-global/06-test }}"); |
51 | 60 | test.done();
|
52 | 61 | },
|
53 | 62 |
|
|
0 commit comments