Skip to content

Commit

Permalink
use map for broader compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
eflanagan0 authored and cyril-sf committed Mar 30, 2022
1 parent f35dc4b commit 7e74f59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ember_debug/vendor/startup-wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ var EMBER_VERSIONS_SUPPORTED = {{EMBER_VERSIONS_SUPPORTED}};
return;
}

sendAppList(adapterInstance, getApplications().mapBy('name'));
sendAppList(adapterInstance, getApplications().map(app => app && app.name));
});

adapterInstance.onMessageReceived(function(message) {
Expand Down
4 changes: 2 additions & 2 deletions tests/acceptance/app-picker-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ module('App Picker', function(hooks) {
});
});

test("Both apps show up in picker", async function(assert) {
test('Both apps show up in picker', async function(assert) {
await visit('/component-tree');

assert.dom('.app-picker').exists('App Picker is shown');
assert.dom(findAll('.app-picker option')[0]).hasText('app-one');
assert.dom(findAll('.app-picker option')[1]).hasText('app-two');
});

test("Clicking each app in the picker switches between them", async function(assert) {
test('Clicking each app in the picker switches between them', async function(assert) {
await visit('/component-tree');

await fillIn('.app-picker select', 'app-two');
Expand Down

0 comments on commit 7e74f59

Please sign in to comment.