Skip to content

Commit f67ded6

Browse files
author
Andrew Lee
committed
Fixes ember eslint violations
1 parent 8318e6f commit f67ded6

File tree

4 files changed

+13
-22
lines changed

4 files changed

+13
-22
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ env:
2222
jobs:
2323
# we recommend new addons test the current and previous LTS
2424
# as well as latest stable release (bonus points to beta/canary)
25-
- EMBER_TRY_SCENARIO=ember-lts-2.18
2625
- EMBER_TRY_SCENARIO=ember-lts-3.4
2726
- EMBER_TRY_SCENARIO=ember-lts-3.8
27+
- EMBER_TRY_SCENARIO=ember-lts-3.12
2828
- EMBER_TRY_SCENARIO=ember-release
2929
- EMBER_TRY_SCENARIO=ember-beta
3030
- EMBER_TRY_SCENARIO=ember-canary

addon/instance-initializers/axe-component.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ export function initialize(appInstance) {
121121
*/
122122
violationClasses: computed('axeViolationClassNames', 'visualNoiseLevel', {
123123
get() {
124-
const customViolationClass = this.get('axeViolationClassNames');
125-
const visualNoiseLevel = this.get('visualNoiseLevel');
124+
const customViolationClass = this.axeViolationClassNames;
125+
const visualNoiseLevel = this.visualNoiseLevel;
126126

127127
if (visualNoiseLevel < 1) {
128128
return null;
@@ -148,9 +148,9 @@ export function initialize(appInstance) {
148148
* @return {Void}
149149
*/
150150
audit() {
151-
if (this.get('tagName') !== '') {
151+
if (this.tagName !== '') {
152152
concurrentAxe.run(this.element, this.axeOptions, (error, results) => {
153-
if (this.get('isDestroyed')) {
153+
if (this.isDestroyed) {
154154
return;
155155
}
156156

@@ -159,8 +159,8 @@ export function initialize(appInstance) {
159159
}
160160

161161
const violations = results.violations;
162-
const violationClasses = this.get('violationClasses') || [];
163-
const visualNoiseLevel = this.get('visualNoiseLevel');
162+
const violationClasses = this.violationClasses || [];
163+
const visualNoiseLevel = this.visualNoiseLevel;
164164

165165
let violation;
166166
let nodes;

config/ember-try.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,36 @@ module.exports = async function() {
77
useYarn: true,
88
scenarios: [
99
{
10-
name: 'ember-lts-2.18',
10+
name: 'ember-lts-3.4',
1111
env: {
1212
EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true }),
1313
},
1414
npm: {
1515
devDependencies: {
1616
'@ember/jquery': '^0.5.1',
17-
'ember-source': '~2.18.0'
17+
'ember-source': '~3.4.0'
1818
}
1919
}
2020
},
2121
{
22-
name: 'ember-lts-3.4',
22+
name: 'ember-lts-3.8',
2323
env: {
2424
EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true }),
2525
},
2626
npm: {
2727
devDependencies: {
28-
'@ember/jquery': '^0.5.1',
29-
'ember-source': '~3.4.0'
28+
'ember-source': '~3.8.0'
3029
}
3130
}
3231
},
3332
{
34-
name: 'ember-lts-3.8',
33+
name: 'ember-lts-3.12',
3534
env: {
3635
EMBER_OPTIONAL_FEATURES: JSON.stringify({ 'jquery-integration': true }),
3736
},
3837
npm: {
3938
devDependencies: {
40-
'ember-source': '~3.8.0'
39+
'ember-source': '~3.12.0'
4140
}
4241
}
4342
},

tests/integration/helpers/a11y-audit-test.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ import a11yAudit from 'ember-a11y-testing/test-support/audit';
77
module('Integration | Helper | a11yAudit', function(hooks) {
88
setupRenderingTest(hooks);
99

10-
if (typeof jQuery != 'undefined') {
11-
test('a11yAudit runs successfully with jquery context', async function(assert) {
12-
await render(hbs`{{#axe-component}}{{/axe-component}}`);
13-
await a11yAudit(this.$());
14-
assert.ok(true, 'a11yAudit ran and didn\'t find any issues');
15-
});
16-
}
17-
1810
test('a11yAudit runs successfully with element context', async function(assert) {
1911
await render(hbs`{{#axe-component}}{{/axe-component}}`);
2012
await a11yAudit(this.element);

0 commit comments

Comments
 (0)