Skip to content

Commit b417c78

Browse files
committed
autoformat ember files
1 parent 35741ea commit b417c78

File tree

11 files changed

+32
-40
lines changed

11 files changed

+32
-40
lines changed

packages/ember/.template-lintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
22

33
module.exports = {
4-
extends: 'octane'
4+
extends: 'octane',
55
};

packages/ember/config/ember-try.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { embroiderSafe } = require('@embroider/test-setup');
99
*
1010
* @returns The versions which should be tested, along with their respective config
1111
*/
12-
module.exports = async function() {
12+
module.exports = async function () {
1313
// whenever and wherever we test, we want to at least test against the latest version of ember
1414
let scenarios = [
1515
{

packages/ember/config/environment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict';
22

3-
module.exports = function(/* environment, appConfig */) {
4-
return { };
3+
module.exports = function (/* environment, appConfig */) {
4+
return {};
55
};

packages/ember/ember-cli-build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
44

5-
module.exports = function(defaults) {
5+
module.exports = function (defaults) {
66
let app = new EmberAddon(defaults, {
77
// Add options here
88
});

packages/ember/testem.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@
33
module.exports = {
44
test_page: 'tests/index.html?hidepassed',
55
disable_watching: true,
6-
launch_in_ci: [
7-
'Chrome'
8-
],
9-
launch_in_dev: [
10-
'Chrome'
11-
],
6+
launch_in_ci: ['Chrome'],
7+
launch_in_dev: ['Chrome'],
128
browser_start_timeout: 120,
139
browser_args: {
1410
Chrome: {
@@ -20,8 +16,8 @@ module.exports = {
2016
'--disable-software-rasterizer',
2117
'--mute-audio',
2218
'--remote-debugging-port=0',
23-
'--window-size=1440,900'
24-
].filter(Boolean)
25-
}
26-
}
19+
'--window-size=1440,900',
20+
].filter(Boolean),
21+
},
22+
},
2723
};

packages/ember/tests/acceptance/sentry-errors-test.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ function assertSentryCall(assert, callNumber, options) {
3434
});
3535
}
3636

37-
module('Acceptance | Sentry Errors', function(hooks) {
37+
module('Acceptance | Sentry Errors', function (hooks) {
3838
setupApplicationTest(hooks);
3939
setupSentryTest(hooks);
4040

41-
test('Check "Throw Generic Javascript Error"', async function(assert) {
41+
test('Check "Throw Generic Javascript Error"', async function (assert) {
4242
await visit('/');
4343
const button = find('[data-test-button="Throw Generic Javascript Error"]');
4444

@@ -48,7 +48,7 @@ module('Acceptance | Sentry Errors', function(hooks) {
4848
assertSentryCall(assert, 0, { errorBodyContains: [...this.errorMessages] });
4949
});
5050

51-
test('Check "Throw EmberError"', async function(assert) {
51+
test('Check "Throw EmberError"', async function (assert) {
5252
await visit('/');
5353
const button = find('[data-test-button="Throw EmberError"]');
5454

@@ -58,7 +58,7 @@ module('Acceptance | Sentry Errors', function(hooks) {
5858
assertSentryCall(assert, 0, { errorBodyContains: [...this.errorMessages] });
5959
});
6060

61-
test('Check "Caught Thrown EmberError"', async function(assert) {
61+
test('Check "Caught Thrown EmberError"', async function (assert) {
6262
await visit('/');
6363
const button = find('[data-test-button="Caught Thrown EmberError"]');
6464

@@ -67,7 +67,7 @@ module('Acceptance | Sentry Errors', function(hooks) {
6767
assertSentryErrorCount(assert, 0);
6868
});
6969

70-
test('Check "Error From Fetch"', async function(assert) {
70+
test('Check "Error From Fetch"', async function (assert) {
7171
this.fetchStub.onFirstCall().callsFake((...args) => {
7272
return this.fetchStub.callsThrough(args);
7373
});
@@ -85,7 +85,7 @@ module('Acceptance | Sentry Errors', function(hooks) {
8585
});
8686
});
8787

88-
test('Check "Error in AfterRender"', async function(assert) {
88+
test('Check "Error in AfterRender"', async function (assert) {
8989
await visit('/');
9090
const button = find('[data-test-button="Error in AfterRender"]');
9191

@@ -96,7 +96,7 @@ module('Acceptance | Sentry Errors', function(hooks) {
9696
assertSentryCall(assert, 0, { errorBodyContains: [...this.errorMessages] });
9797
});
9898

99-
test('Check "RSVP Rejection"', async function(assert) {
99+
test('Check "RSVP Rejection"', async function (assert) {
100100
await visit('/');
101101
const button = find('[data-test-button="RSVP Rejection"]');
102102

@@ -107,7 +107,7 @@ module('Acceptance | Sentry Errors', function(hooks) {
107107
assertSentryCall(assert, 0, { errorBodyContains: [this.qunitOnUnhandledRejection.getCall(0).args[0]] });
108108
});
109109

110-
test('Check "Error inside RSVP"', async function(assert) {
110+
test('Check "Error inside RSVP"', async function (assert) {
111111
await visit('/');
112112
const button = find('[data-test-button="Error inside RSVP"]');
113113

packages/ember/tests/acceptance/sentry-performance-test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ function assertSentryCall(assert, callNumber, options) {
5050
}
5151
}
5252

53-
module('Acceptance | Sentry Transactions', function(hooks) {
53+
module('Acceptance | Sentry Transactions', function (hooks) {
5454
setupApplicationTest(hooks);
5555
setupSentryTest(hooks);
5656

57-
test('Test transaction', async function(assert) {
57+
test('Test transaction', async function (assert) {
5858
await visit('/tracing');
5959

6060
assertSentryTransactionCount(assert, 1);
@@ -78,7 +78,7 @@ module('Acceptance | Sentry Transactions', function(hooks) {
7878
});
7979
});
8080

81-
test('Test navigating to slow route', async function(assert) {
81+
test('Test navigating to slow route', async function (assert) {
8282
await visit('/tracing');
8383
const button = find('[data-test-button="Transition to slow loading route"]');
8484

packages/ember/tests/dummy/app/router.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ export default class Router extends EmberRouter {
66
rootURL = config.rootURL;
77
}
88

9-
Router.map(function() {
9+
Router.map(function () {
1010
this.route('tracing');
11-
this.route('slow-loading-route', function() {
11+
this.route('slow-loading-route', function () {
1212
this.route('index', { path: '/' });
1313
});
1414
});

packages/ember/tests/dummy/config/environment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
module.exports = function(environment) {
3+
module.exports = function (environment) {
44
let ENV = {
55
modulePrefix: 'dummy',
66
environment,
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
'use strict';
22

3-
const browsers = [
4-
'last 1 Chrome versions',
5-
'last 1 Firefox versions',
6-
'last 1 Safari versions'
7-
];
3+
const browsers = ['last 1 Chrome versions', 'last 1 Firefox versions', 'last 1 Safari versions'];
84

95
const isCI = !!process.env.CI;
106
const isProduction = process.env.EMBER_ENV === 'production';
@@ -15,5 +11,5 @@ if (isCI || isProduction) {
1511

1612
module.exports = {
1713
browsers,
18-
node: 'current'
14+
node: 'current',
1915
};

packages/ember/tests/helpers/setup-sentry.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { _instrumentEmberRouter } from '@sentry/ember/instance-initializers/sent
77
let _routerStartTransaction;
88

99
export function setupSentryTest(hooks) {
10-
hooks.beforeEach(async function() {
10+
hooks.beforeEach(async function () {
1111
await window._sentryPerformanceLoad;
1212
window._sentryTestEvents = [];
1313
const errorMessages = [];
@@ -36,12 +36,12 @@ export function setupSentryTest(hooks) {
3636
QUnit.onUncaughtException ? 'onUncaughtException' : 'onUnhandledRejection',
3737
);
3838

39-
QUnit.onError = function({ message }) {
39+
QUnit.onError = function ({ message }) {
4040
errorMessages.push(message.split('Error: ')[1]);
4141
return true;
4242
};
4343

44-
Ember.onerror = function(...args) {
44+
Ember.onerror = function (...args) {
4545
const [error] = args;
4646
errorMessages.push(error.message);
4747
throw error;
@@ -52,15 +52,15 @@ export function setupSentryTest(hooks) {
5252
/**
5353
* Will collect errors when run via testem in cli
5454
*/
55-
window.onerror = function(error, ...args) {
55+
window.onerror = function (error, ...args) {
5656
errorMessages.push(error.split('Error: ')[1]);
5757
if (this._windowOnError) {
5858
return this._windowOnError(error, ...args);
5959
}
6060
};
6161
});
6262

63-
hooks.afterEach(function() {
63+
hooks.afterEach(function () {
6464
this.fetchStub.restore();
6565
this.qunitOnUnhandledRejection.restore();
6666
window.onerror = this._windowOnError;

0 commit comments

Comments
 (0)