Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade ember-test-helpers and node #1077

Merged
merged 13 commits into from
Jun 10, 2023
8 changes: 4 additions & 4 deletions types/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ module('rendering', function (hooks) {

await render(hbs`{{ x-foo value=value action="result" data-test-content}}`);

const el = this.element.querySelector('div');
assert.equal(el?.innerText, 'cat', 'The component shows the correct value');
assert.equal('[data-test-content]', 'cat', 'The component shows the correct value');

// I don't know what to do about this test...what are we trying to test here??
MelSumner marked this conversation as resolved.
Show resolved Hide resolved
this.element.querySelector('button')?.click();
});

Expand All @@ -68,8 +68,8 @@ module('rendering', function (hooks) {
const inputFormat2 = this.get('inputFormat');

// render the component on the page
await render(hbs`<div>bar</div>`);
assert.equal(this.element.querySelector('div')?.innerText, 'bar');
await render(hbs`<div data-test-content>bar</div>`);
assert.equal('[data-test-content]', 'bar');
MelSumner marked this conversation as resolved.
Show resolved Hide resolved
});
});

Expand Down