Skip to content

Commit

Permalink
chore: run ember codemods to use qunit-dom
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Metzener authored and anehx committed May 22, 2019
1 parent 3f68eab commit 3a631ee
Show file tree
Hide file tree
Showing 6 changed files with 439 additions and 885 deletions.
6 changes: 3 additions & 3 deletions tests/integration/components/cf-field-value-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module("Integration | Component | cf-field-value", function(hooks) {

await render(hbs`{{cf-field-value field=field}}`);

assert.equal(this.element.textContent.trim(), "A, B");
assert.dom(this.element).hasText("A, B");
});

test("it renders choice questions", async function(assert) {
Expand Down Expand Up @@ -77,7 +77,7 @@ module("Integration | Component | cf-field-value", function(hooks) {

await render(hbs`{{cf-field-value field=field}}`);

assert.equal(this.element.textContent.trim(), "C");
assert.dom(this.element).hasText("C");
});

test("it renders text questions", async function(assert) {
Expand All @@ -92,6 +92,6 @@ module("Integration | Component | cf-field-value", function(hooks) {

await render(hbs`{{cf-field-value field=field}}`);

assert.equal(this.element.textContent.trim(), "foo");
assert.dom(this.element).hasText("foo");
});
});
2 changes: 1 addition & 1 deletion tests/integration/components/cf-field/info-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ module("Integration | Component | cf-field/info", function(hooks) {
test("it renders", async function(assert) {
await render(hbs`{{cf-field/info}}`);

assert.equal(this.element.textContent.trim(), "");
assert.dom(this.element).hasText("");
});
});
2 changes: 1 addition & 1 deletion tests/integration/components/cf-navigation-item-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ module("Integration | Component | cf-navigation-item", function(hooks) {

await render(hbs`{{cf-navigation-item}}`);

assert.equal(this.element.textContent.trim(), "");
assert.dom(this.element).hasText("");
});
});
2 changes: 1 addition & 1 deletion tests/integration/components/cf-navigation-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ module("Integration | Component | cf-navigation", function(hooks) {

await render(hbs`{{cf-navigation}}`);

assert.equal(this.element.textContent.trim(), "");
assert.dom(this.element).hasText("");
});
});
5 changes: 1 addition & 4 deletions tests/integration/helpers/atob-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ module("Integration | Helper | atob", function(hooks) {

await render(hbs`{{atob inputValue}}`);

assert.equal(
this.element.textContent.trim(),
"9df3c607-2f54-48a8-8636-a4435f2fb653"
);
assert.dom(this.element).hasText("9df3c607-2f54-48a8-8636-a4435f2fb653");
});
});
Loading

0 comments on commit 3a631ee

Please sign in to comment.