123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547 |
- // Jest Snapshot v1, https://goo.gl/fbAQLP
- exports[`block-statement.hbs 1`] = `
- {{#block param hashKey=hashValue as |blockParam|}}
- Hello
- {{/block}}
- {{#block almost80CharacterLongPositionalParamThatIsFirstAlmost80Chars helloWorldParam key=here}}
- {{/block}}
- {{#block param param param param param param param hashKey=hashValue as |blockParam|}}
- Hello
- {{/block}}
- {{#block param param param param param param param hashKey=HashValue hashKey=hashValue}}
- Hello
- {{/block}}
- {{#block param param param param param param param param param param param param param}}
- Hello
- {{/block}}
- {{#block hashKey=HashValue hashKey=hashValue hashKey=HashValue hashKey=hashValue hashKey=HashValue}}
- Hello
- {{/block}}
- {{#block}}
- {{#block}}
- hello
- {{/block}}
- {{/block}}
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {{#block param hashKey=hashValue as |blockParam|}}
- Hello
- {{/block}}
- {{#block
- almost80CharacterLongPositionalParamThatIsFirstAlmost80Chars
- helloWorldParam
- key=here
- }}{{/block}}
- {{#block
- param
- param
- param
- param
- param
- param
- param
- hashKey=hashValue as |blockParam|
- }}
- Hello
- {{/block}}
- {{#block
- param
- param
- param
- param
- param
- param
- param
- hashKey=HashValue
- hashKey=hashValue
- }}
- Hello
- {{/block}}
- {{#block
- param
- param
- param
- param
- param
- param
- param
- param
- param
- param
- param
- param
- param
- }}
- Hello
- {{/block}}
- {{#block
- hashKey=HashValue
- hashKey=hashValue
- hashKey=HashValue
- hashKey=hashValue
- hashKey=HashValue
- }}
- Hello
- {{/block}}
- {{#block}}{{#block}}hello{{/block}}{{/block}}
- `;
- exports[`component.hbs 1`] = `
- <user-greeting @name="Ricardo" @greeting="Olá" />
- {{@greeting}}, {{@name}}!
- <button onclick={{action next}}>Next</button>
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- <user-greeting @name="Ricardo" @greeting="Olá"></user-greeting>
- {{@greeting}}
- ,
- {{@name}}
- !
- <button onclick={{action next}}>
- Next
- </button>
- `;
- exports[`concat-statement.hbs 1`] = `
- <div class="hello {{if goodbye true}}">
- Hello
- </div>
- <div class="hello {{if goodbye true}} {{if goodbye false}} {{if goodbye true}} {{if goodbye false}} {{if goodbye true}}">
- Hello
- </div>
- <a href="/{{url}}/{{url}}"></a>
- <div class=" class-a{{myClass}}"></div>
- <div class=" class-b {{myClass}}"></div>
- <div class=" {{myClass}}class-c"></div>
- <div class=" {{myClass}} class-d"></div>
- <div class=" class-e{{myClass}} class-f"></div>
- <div class=" class-g{{myClass}}class-h "></div>
- <div class=" class-i {{myClass}}class-j"></div>
- <div class="class-k {{myClass}} class-l"></div>
- <div class=" class-m {{myClass}} class-n {{myClass}}class-o "></div>
- <div class=" class-p class-q"></div>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- <div class="hello {{if goodbye true}}">
- Hello
- </div>
- <div
- class="hello
- {{if goodbye true}}
- {{if goodbye false}}
- {{if goodbye true}}
- {{if goodbye false}}
- {{if goodbye true}}"
- >
- Hello
- </div>
- <a href="/{{url}}/{{url}}"></a>
- <div class="class-a{{myClass}}"></div>
- <div class="class-b {{myClass}}"></div>
- <div class="{{myClass}}class-c"></div>
- <div class="{{myClass}} class-d"></div>
- <div class="class-e{{myClass}} class-f"></div>
- <div class="class-g{{myClass}}class-h"></div>
- <div class="class-i {{myClass}}class-j"></div>
- <div class="class-k {{myClass}} class-l"></div>
- <div class="class-m {{myClass}} class-n {{myClass}}class-o"></div>
- <div class="class-p class-q"></div>
- `;
- exports[`element-modifier-statement.hbs 1`] = `
- <div {{hello param hash=key}} {{goodbye param}}>
- Hello
- </div>
- <div {{hello param param param param param param param param param param param param}}>
- Hello
- </div>
- <div {{hello hashPair=value hashPair=value hashPair=value hashPair=value hashPair=value}}>
- Hello
- </div>
- <div {{hello param param param param hashPair=value hashPair=value hashPair=value hashPair=value hashPair=value}}>
- Hello
- </div>
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- <div {{hello param hash=key}} {{goodbye param}}>
- Hello
- </div>
- <div
- {{hello
- param
- param
- param
- param
- param
- param
- param
- param
- param
- param
- param
- param
- }}
- >
- Hello
- </div>
- <div
- {{hello
- hashPair=value
- hashPair=value
- hashPair=value
- hashPair=value
- hashPair=value
- }}
- >
- Hello
- </div>
- <div
- {{hello
- param
- param
- param
- param
- hashPair=value
- hashPair=value
- hashPair=value
- hashPair=value
- hashPair=value
- }}
- >
- Hello
- </div>
- `;
- exports[`element-node.hbs 1`] = `
- <div class="attribute" {{modifier}} {{! comment}}>
- Hello
- </div>
- <div>
- Hello
- </div>
- <div>
- hi
- </div>
- <div>
- A long enough string to trigger a line break that would prevent wrapping.
- </div>
- <div>
- A long enough string to trigger a line break that would prevent wrapping more.
- </div>
- <div>
- A long enough string to trigger a line break that would prevent wrapping more and more.
- </div>
- <div>
- {{#block}}
- {{hello}}
- {{/block}}
- </div>
- <div>
- {{hello}}
- </div>
- <div></div>
- <img />
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- <div class="attribute" {{modifier}} {{! comment}}>
- Hello
- </div>
- <div>
- Hello
- </div>
- <div>
- hi
- </div>
- <div>
- A long enough string to trigger a line break that would prevent wrapping.
- </div>
- <div>
- A long enough string to trigger a line break that would prevent wrapping more.
- </div>
- <div>
- A long enough string to trigger a line break that would prevent wrapping more and more.
- </div>
- <div>
- {{#block}}{{hello}}{{/block}}
- </div>
- <div>
- {{hello}}
- </div>
- <div></div>
- <img />
- `;
- exports[`else-if.hbs 1`] = `
- {{#if a}}
- b
- {{else if c}}
- d
- {{else}}
- e
- {{/if}}
- {{#if a}}
- b
- {{else if c}}
- d
- {{else}}
- hello
- {{#if f}}
- g
- {{/if}}
- e
- {{/if}}
- {{#if a}}
- b
- {{else if c}}
- d
- {{else if e}}
- f
- {{else if g}}
- h
- {{else}}
- j
- {{/if}}
- <div>
- {{#if a}}
- b
- {{else if c}}
- d
- {{else}}
- e
- {{/if}}
- </div>
- <div>
- <div>
- {{#if a}}
- b
- {{else if c}}
- d
- {{else}}
- e
- {{/if}}
- </div>
- </div>
- {{#if a}}
- b
- {{else}}
- {{#each c as |d|}}
- e
- {{/each}}
- {{/if}}
- {{#if a}}
- {{#if b}}
- ab
- {{else if c}}
- ac
- {{/if}}
- {{/if}}~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {{#if a}}
- b
- {{else if c}}
- d
- {{else}}
- e
- {{/if}}
- {{#if a}}
- b
- {{else if c}}
- d
- {{else}}
- hello
- {{#if f}}
- g
- {{/if}}
- e
- {{/if}}
- {{#if a}}
- b
- {{else if c}}
- d
- {{else if e}}
- f
- {{else if g}}
- h
- {{else}}
- j
- {{/if}}
- <div>
- {{#if a}}
- b
- {{else if c}}
- d
- {{else}}
- e
- {{/if}}
- </div>
- <div>
- <div>
- {{#if a}}
- b
- {{else if c}}
- d
- {{else}}
- e
- {{/if}}
- </div>
- </div>
- {{#if a}}
- b
- {{else}}
- {{#each c as |d|}}
- e
- {{/each}}
- {{/if}}
- {{#if a}}
- {{#if b}}
- ab
- {{else if c}}
- ac
- {{/if}}
- {{/if}}
- `;
- exports[`literals.hbs 1`] = `
- {{mustache true}}
- {{mustache 5}}
- {{mustache undefined}}
- {{mustache null}}
- <!-- hello world -->
- {{! Mustache Comment}}
- {{!-- Mustache Comment }} --}}
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- {{mustache true}}
- {{mustache 5}}
- {{mustache undefined}}
- {{mustache null}}
- <!-- hello world -->
- {{! Mustache Comment}}
- {{!-- Mustache Comment }} --}}
- `;
- exports[`loop.hbs 1`] = `
- <ul>
- {{#each speakers key="@index" as |speaker|}}
- <li>{{speaker}}</li>
- {{/each}}
- </ul>
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- <ul>
- {{#each speakers key="@index" as |speaker|}}
- <li>
- {{speaker}}
- </li>
- {{/each}}
- </ul>
- `;
- exports[`sub-expressions.hbs 1`] = `
- <div
- {{mustache
- (concat
- (helper param hashPair=Value)
- (largeNameHelper param param param param hashPair=value hashPair=value hashPair=Value)
- hashPair=(helper param param param param param param hashPair=value hashPair=value hashPair=value)
- hashPair=(does not need a line break due to being under 80 chars long)
- )
- }}
- ></div>
- {{#block
- (concat
- (helper param hashPair=Value)
- (largeNameHelper param param param param hashPair=value hashPair=value hashPair=Value)
- hashPair=(helper param param param param param param hashPair=value hashPair=value hashPair=value)
- hashPair=(does not need a line break due to being under 80 chars long)
- )
- }}
- {{/block}}
- {{foobar-sub-component/foobar-foo
- hook="stringLiteral"
- foo=
- (t
- (concat "stringLiteral" (get blockParam "stringLiteral") hash=hash hash=hash)
- foo=(simple-helper (hash hashKey=blockParam.foo assignParam=blockParam.bar))
- )
- }}
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- <div
- {{mustache
- (concat
- (helper param hashPair=Value)
- (largeNameHelper
- param param param param hashPair=value hashPair=value hashPair=Value
- )
- hashPair=(helper
- param
- param
- param
- param
- param
- param
- hashPair=value
- hashPair=value
- hashPair=value
- )
- hashPair=(does not need a line break due to being under 80 chars long)
- )
- }}
- ></div>
- {{#block
- (concat
- (helper param hashPair=Value)
- (largeNameHelper
- param param param param hashPair=value hashPair=value hashPair=Value
- )
- hashPair=(helper
- param
- param
- param
- param
- param
- param
- hashPair=value
- hashPair=value
- hashPair=value
- )
- hashPair=(does not need a line break due to being under 80 chars long)
- )
- }}{{/block}}
- {{foobar-sub-component/foobar-foo
- hook="stringLiteral"
- foo=(t
- (concat
- "stringLiteral" (get blockParam "stringLiteral") hash=hash hash=hash
- )
- foo=(simple-helper (hash hashKey=blockParam.foo assignParam=blockParam.bar))
- )
- }}
- `;
|