Skip to content

Commit 7440d06

Browse files
committed
Add test cases for JS/TS embedded templates
1 parent f43d6e6 commit 7440d06

File tree

4 files changed

+66
-0
lines changed

4 files changed

+66
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { hbs as echHBS } from 'ember-cli-htmlbars';
2+
import hipHBS from 'htmlbars-inline-precompile';
3+
import echipHBS from 'ember-cli-htmlbars-inline-precompile';
4+
import { hbs } from 'unknown-tag-source';
5+
6+
echHBS`
7+
Hello,
8+
{{target}}!
9+
\n
10+
`;
11+
12+
hipHBS`Hello, {{target}}!`;
13+
14+
echipHBS`Hello, {{target}}!`;
15+
16+
hbs`Hello, {{target}}!`;
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { hbs as echHBS } from 'ember-cli-htmlbars';
2+
import hipHBS from 'htmlbars-inline-precompile';
3+
import echipHBS from 'ember-cli-htmlbars-inline-precompile';
4+
import { hbs } from 'unknown-tag-source';
5+
6+
echHBS`
7+
Hello,
8+
{{this.target}}!
9+
\n
10+
`;
11+
12+
hipHBS`Hello, {{this.target}}!`;
13+
14+
echipHBS`Hello, {{this.target}}!`;
15+
16+
hbs`Hello, {{target}}!`;
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { hbs as echHBS } from 'ember-cli-htmlbars';
2+
import hipHBS from 'htmlbars-inline-precompile';
3+
import echipHBS from 'ember-cli-htmlbars-inline-precompile';
4+
5+
declare const hbs: unknown;
6+
7+
echHBS`
8+
Hello,
9+
{{target}}!
10+
\n
11+
`;
12+
13+
hipHBS`Hello, {{target}}!`;
14+
15+
echipHBS`Hello, {{target}}!`;
16+
17+
hbs`Hello, {{target}}!`;
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { hbs as echHBS } from 'ember-cli-htmlbars';
2+
import hipHBS from 'htmlbars-inline-precompile';
3+
import echipHBS from 'ember-cli-htmlbars-inline-precompile';
4+
5+
declare const hbs: unknown;
6+
7+
echHBS`
8+
Hello,
9+
{{this.target}}!
10+
\n
11+
`;
12+
13+
hipHBS`Hello, {{this.target}}!`;
14+
15+
echipHBS`Hello, {{this.target}}!`;
16+
17+
hbs`Hello, {{target}}!`;

0 commit comments

Comments
 (0)