mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-01 09:54:52 -05:00
correct invalid tests
This commit is contained in:
parent
6c37b26b24
commit
bfd08ca649
1 changed files with 0 additions and 4 deletions
|
@ -20,8 +20,6 @@ componentTest('with a label', {
|
||||||
test(assert) {
|
test(assert) {
|
||||||
const $a = this.$('a');
|
const $a = this.$('a');
|
||||||
assert.equal($a.text(), I18n.t('user.preferences'));
|
assert.equal($a.text(), I18n.t('user.preferences'));
|
||||||
assert.equal($a.attr('title'), I18n.t('user.preferences'));
|
|
||||||
assert.equal($a.attr('aria-title'), I18n.t('user.preferences'));
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -31,8 +29,6 @@ componentTest('with a label and icon', {
|
||||||
const $a = this.$('a');
|
const $a = this.$('a');
|
||||||
assert.ok(this.$('i.fa-gear', $a).length, 'shows the icon');
|
assert.ok(this.$('i.fa-gear', $a).length, 'shows the icon');
|
||||||
assert.equal($a.text(), ` ${I18n.t('user.preferences')}`, "includes a space");
|
assert.equal($a.text(), ` ${I18n.t('user.preferences')}`, "includes a space");
|
||||||
assert.equal($a.attr('title'), I18n.t('user.preferences'));
|
|
||||||
assert.equal($a.attr('aria-title'), I18n.t('user.preferences'));
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue