ui: Change code-editor tested to use querySelectorAll (#8087) (#8131)

This commit is contained in:
John Cowen 2020-06-17 14:17:00 +01:00 committed by GitHub
parent 84c977faf1
commit b5e08089ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -15,12 +15,12 @@ module('Integration | Component | code editor', function(hooks) {
// this test is just to prove it renders something without producing
// an error. It renders the number 1, but seems to also render some sort of trailing space
// so just check for presence of CodeMirror
assert.equal(this.$().find('.CodeMirror').length, 1);
assert.equal(this.element.querySelectorAll('.CodeMirror').length, 1);
// Template block usage:
await render(hbs`
{{#code-editor}}{{/code-editor}}
`);
assert.equal(this.$().find('.CodeMirror').length, 1);
assert.equal(this.element.querySelectorAll('.CodeMirror').length, 1);
});
});