Skip to content

Commit

Permalink
Eliminate jquery usage
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemelia committed Sep 18, 2023
1 parent ffefeb7 commit 101d39f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/dummy/config/optional-features.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"application-template-wrapper": false,
"default-async-observers": true,
"jquery-integration": true,
"jquery-integration": false,
"template-only-glimmer-components": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ import {
mobiledocWithCard,
mobiledocWithAtom,
} from '../../../helpers/create-mobiledoc';
import $ from 'jquery';
import { action } from '@ember/object';

const COMPONENT_CARD_EXPECTED_PROPS = [
Expand Down Expand Up @@ -1052,8 +1051,9 @@ module('Integration | Component | mobiledoc editor', function (hooks) {
name: 'test-card',
type: 'dom',
render() {
// eslint-disable-next-line ember/no-jquery
return $('<div id="card-test">CARD CONTENT</div>')[0];
var template = document.createElement('template');
template.innerHTML = '<div id="card-test">CARD CONTENT</div>'; // Never return a text node of whitespace as the result
return template.content.firstChild;
},
},
]);
Expand Down

0 comments on commit 101d39f

Please sign in to comment.