Skip to content

Commit 75383de

Browse files
committed
Migrate from htmlbars-inline-precompile to ember-cli-htmlbars
1 parent 80b215d commit 75383de

File tree

8 files changed

+155
-58
lines changed

8 files changed

+155
-58
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ It will setup your test context the same way as `setupTest()`, and additionally:
129129
import { module, test } from 'qunit';
130130
import { setupRenderingTest } from 'ember-qunit';
131131
import { render } from '@ember/test-helpers';
132-
import hbs from 'htmlbars-inline-precompile';
132+
import { hbs } from 'ember-cli-htmlbars';
133133

134134
module('GravatarImageComponent', function(hooks) {
135135
setupRenderingTest(hooks);

docs/legacy.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Legacy Guide
44

55
This document describes the use of `ember-qunit` with Ember's legacy testing
66
APIs, which have been superseded by the newer testing system based on the RFCs
7-
[232](https://github.com/emberjs/rfcs/blob/master/text/0232-simplify-qunit-testing-api.md)
8-
and
7+
[232](https://github.com/emberjs/rfcs/blob/master/text/0232-simplify-qunit-testing-api.md)
8+
and
99
[268](https://github.com/emberjs/rfcs/blob/master/text/0268-acceptance-testing-refactor.md).
1010

1111
## Usage
@@ -18,7 +18,7 @@ and
1818
### Component Integration Tests
1919

2020
```js
21-
import hbs from 'htmlbars-inline-precompile';
21+
import { hbs } from 'ember-cli-htmlbars';
2222
import { test, moduleForComponent } from 'ember-qunit';
2323

2424
moduleForComponent('x-foo', {

docs/migration.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Before:
208208

209209
```javascript
210210
import { test, moduleForComponent } from 'ember-qunit';
211-
import hbs from 'htmlbars-inline-precompile';
211+
import { hbs } from 'ember-cli-htmlbars';
212212

213213
moduleForComponent('GravatarImageComponent', {
214214
integration: true
@@ -226,7 +226,7 @@ After:
226226
import { module, test } from 'qunit';
227227
import { setupRenderingTest } from 'ember-qunit';
228228
import { render } from '@ember/test-helpers';
229-
import hbs from 'htmlbars-inline-precompile';
229+
import { hbs } from 'ember-cli-htmlbars';
230230

231231
module('GravatarImageComponent', function(hooks) {
232232
setupRenderingTest(hooks);

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"ember-angle-bracket-invocation-polyfill": "^3.0.2",
5959
"ember-cli": "~4.10.0",
6060
"ember-cli-dependency-checker": "^3.3.1",
61-
"ember-cli-htmlbars": "^6.1.1",
61+
"ember-cli-htmlbars": "^6.2.0",
6262
"ember-cli-inject-live-reload": "^2.1.0",
6363
"ember-cli-terser": "^4.0.2",
6464
"ember-disable-prototype-extensions": "^1.1.3",

tests/acceptance/basic-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { module, test } from 'qunit';
22
import EmberRouter from '@ember/routing/router';
33
import Route from '@ember/routing/route';
4-
import hbs from 'htmlbars-inline-precompile';
4+
import { hbs } from 'ember-cli-htmlbars';
55
import { setupApplicationTest } from 'ember-qunit';
66
import {
77
visit,

tests/integration/setup-rendering-test-test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { module, test } from 'qunit';
22
import Component from '@ember/component';
33
import { helper } from '@ember/component/helper';
4-
import hbs from 'htmlbars-inline-precompile';
4+
import { hbs } from 'ember-cli-htmlbars';
55
import { setupRenderingTest } from 'ember-qunit';
66
import { render } from '@ember/test-helpers';
77
import { setResolverRegistry } from '../helpers/resolver';

types/tests.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// These tests were ported directly from DefinitelyTyped and are unlikely to be
22
// 100% desireable for the future.
3-
import hbs from 'htmlbars-inline-precompile';
3+
import { hbs } from 'ember-cli-htmlbars';
44
import { module } from 'qunit';
55
import {
66
start,

0 commit comments

Comments
 (0)