Skip to content

Commit 2d54b59

Browse files
committed
🔥 removing jquery from open-graph-tags test
1 parent 4986c13 commit 2d54b59

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎tests/acceptance/open-graph-tags-test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { visit } from '@ember/test-helpers';
22
import { module, test } from 'qunit';
33
import { setupApplicationTest } from 'ember-qunit';
4-
import $ from 'jquery';
54

65
module('Acceptance | open graph tags', function(hooks) {
76
setupApplicationTest(hooks);
@@ -11,8 +10,8 @@ module('Acceptance | open graph tags', function(hooks) {
1110
});
1211

1312
function findOpenGraphContent (propertyName) {
14-
const el = $(`meta[property="og:${propertyName}"]`);
15-
return el.attr('content');
13+
const el = document.querySelector(`head meta[property="og:${propertyName}"]`);
14+
return el.content;
1615
}
1716

1817
test('assigns title property', function (assert) {

0 commit comments

Comments
 (0)