From 4fa580fbd13f87a295a31d83bf142e9fb56395ac Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 25 Mar 2020 16:13:43 -0400 Subject: [PATCH] Revert "Rename all test files from JS -> ES6" This reverts commit 2abe85b8344de1102c1589a9ac9421a8b296f2b5. --- lib/discourse_js_processor.rb | 39 +++++++++---------- .../{about-test.js => about-test.js.es6} | 0 ...ed-test.js => account-created-test.js.es6} | 0 ...mails-test.js => admin-emails-test.js.es6} | 0 ...t.js => admin-search-log-term-test.js.es6} | 0 ...-test.js => admin-search-logs-test.js.es6} | 0 ...est.js => admin-site-settings-test.js.es6} | 0 ...xt-test.js => admin-site-text-test.js.es6} | 0 ...test.js => admin-suspend-user-test.js.es6} | 0 ...-test.js => admin-user-badges-test.js.es6} | 0 ...-test.js => admin-user-emails-test.js.es6} | 0 ...x-test.js => admin-user-index-test.js.es6} | 0 ...t-test.js => admin-users-list-test.js.es6} | 0 ...est.js => admin-watched-words-test.js.es6} | 0 ...lete-test.js => auth-complete-test.js.es6} | 0 .../{badges-test.js => badges-test.js.es6} | 0 ...r-test.js => category-chooser-test.js.es6} | 0 ....js => category-edit-security-test.js.es6} | 0 ...edit-test.js => category-edit-test.js.es6} | 0 ...g-test.js => category-hashtag-test.js.es6} | 0 ...-track-test.js => click-track-test.js.es6} | 0 ...s-test.js => composer-actions-test.js.es6} | 0 ...est.js => composer-attachment-test.js.es6} | 0 ....js => composer-edit-conflict-test.js.es6} | 0 ...test.js => composer-hyperlink-test.js.es6} | 0 ...ox-test.js => composer-onebox-test.js.es6} | 0 ...{composer-test.js => composer-test.js.es6} | 0 ...st.js => composer-topic-links-test.js.es6} | 0 ....js => composer-uncategorized-test.js.es6} | 0 ...=> create-account-user-fields-test.js.es6} | 0 ...et-test.js => custom-html-set-test.js.es6} | 0 ...st.js => custom-html-template-test.js.es6} | 0 ...ashboard-test.js => dashboard-test.js.es6} | 0 ...otice-test.js => email-notice-test.js.es6} | 0 ...icker-test.js => emoji-picker-test.js.es6} | 0 .../{emoji-test.js => emoji-test.js.es6} | 0 ...t.js => enforce-second-factor-test.js.es6} | 0 ...rd-test.js => forgot-password-test.js.es6} | 0 ...-test.js => group-card-mobile-test.js.es6} | 0 ...up-card-test.js => group-card-test.js.es6} | 0 ...-index-test.js => group-index-test.js.es6} | 0 ...s => group-manage-interaction-test.js.es6} | 0 ...-test.js => group-manage-logs-test.js.es6} | 0 ...js => group-manage-membership-test.js.es6} | 0 ...st.js => group-manage-profile-test.js.es6} | 0 ...sts-test.js => group-requests-test.js.es6} | 0 .../{group-test.js => group-test.js.es6} | 0 ...index-test.js => groups-index-test.js.es6} | 0 ...ups-new-test.js => groups-new-test.js.es6} | 0 ...cept-test.js => invite-accept-test.js.es6} | 0 ...js => invite-show-user-fields-test.js.es6} | 0 .../{jump-to-test.js => jump-to-test.js.es6} | 0 ...test.js => keyboard-shortcuts-test.js.es6} | 0 ...ect-test.js => login-redirect-test.js.es6} | 0 ...red-test.js => login-required-test.js.es6} | 0 ...-and-hide-email-address-taken-test.js.es6} | 0 ...th-email-and-no-social-logins-test.js.es6} | 0 ... => login-with-email-disabled-test.js.es6} | 0 ...l-test.js => login-with-email-test.js.es6} | 0 ...y-test.js => mobile-discovery-test.js.es6} | 0 ...-in-test.js => mobile-sign-in-test.js.es6} | 0 ...users-test.js => mobile-users-test.js.es6} | 0 .../{modal-test.js => modal-test.js.es6} | 0 ...essage-test.js => new-message-test.js.es6} | 0 ...ew-topic-test.js => new-topic-test.js.es6} | 0 ...set-test.js => password-reset-test.js.es6} | 0 ...e-test.js => personal-message-test.js.es6} | 0 ...plugin-outlet-connector-class-test.js.es6} | 0 ...js => plugin-outlet-decorator-test.js.es6} | 0 ... plugin-outlet-multi-template-test.js.es6} | 0 ...plugin-outlet-single-template-test.js.es6} | 0 ...rences-test.js => preferences-test.js.es6} | 0 ...-test.js => raw-plugin-outlet-test.js.es6} | 0 ...op-test.js => redirect-to-top-test.js.es6} | 0 .../{reports-test.js => reports-test.js.es6} | 0 .../{review-test.js => review-test.js.es6} | 0 ...h-full-test.js => search-full-test.js.es6} | 0 ...bile-test.js => search-mobile-test.js.es6} | 0 .../{search-test.js => search-test.js.es6} | 0 ...s => share-and-invite-desktop-test.js.es6} | 0 ...js => share-and-invite-mobile-test.js.es6} | 0 ...afts-test.js => shared-drafts-test.js.es6} | 0 .../{sign-in-test.js => sign-in-test.js.es6} | 0 .../{static-test.js => static-test.js.es6} | 0 ...-groups-test.js => tag-groups-test.js.es6} | 0 ...ashtag-test.js => tag-hashtag-test.js.es6} | 0 ...-test.js => tags-intersection-test.js.es6} | 0 .../{tags-test.js => tags-test.js.es6} | 0 ...us-test.js => topic-anonymous-test.js.es6} | 0 ...ry-test.js => topic-discovery-test.js.es6} | 0 ...r-test.js => topic-edit-timer-test.js.es6} | 0 ...> topic-footer-buttons-mobile-test.js.es6} | 0 ...s-test.js => topic-move-posts-test.js.es6} | 0 ...=> topic-notifications-button-test.js.es6} | 0 .../{topic-test.js => topic-test.js.es6} | 0 .../{unknown-test.js => unknown-test.js.es6} | 0 ...ous-test.js => user-anonymous-test.js.es6} | 0 ...e-test.js => user-card-mobile-test.js.es6} | 0 ...ser-card-test.js => user-card-test.js.es6} | 0 ...test.js => user-drafts-stream-test.js.es6} | 0 .../{user-test.js => user-test.js.es6} | 0 .../{users-test.js => users-test.js.es6} | 0 ...test.js => group-list-setting-test.js.es6} | 0 ...m-test.js => themes-list-item-test.js.es6} | 0 ...s-list-test.js => themes-list-test.js.es6} | 0 ...> admin-customize-themes-show-test.js.es6} | 0 ....js => admin-customize-themes-test.js.es6} | 0 ...-test.js => admin-user-badges-test.js.es6} | 0 .../{theme-test.js => theme-test.js.es6} | 0 ...-editor-test.js => ace-editor-test.js.es6} | 0 ...eport-test.js => admin-report-test.js.es6} | 0 ...-title-test.js => badge-title-test.js.es6} | 0 ...{d-button-test.js => d-button-test.js.es6} | 0 ...{d-editor-test.js => d-editor-test.js.es6} | 0 .../{d-icon-test.js => d-icon-test.js.es6} | 0 ...e-input-test.js => date-input-test.js.es6} | 0 ...t.js => date-time-input-range-test.js.es6} | 0 ...ut-test.js => date-time-input-test.js.es6} | 0 ...js => group-membership-button-test.js.es6} | 0 ...r-test.js => html-safe-helper-test.js.es6} | 0 ...-html-test.js => iframed-html-test.js.es6} | 0 ...der-test.js => image-uploader-test.js.es6} | 0 ...test.js => keyboard-shortcuts-test.js.es6} | 0 ...oad-more-test.js => load-more-test.js.es6} | 0 ...-test.js => secret-value-list-test.js.es6} | 0 ...r-test.js => category-chooser-test.js.es6} | 0 ...drop-test.js => category-drop-test.js.es6} | 0 ...ombo-box-test.js => combo-box-test.js.es6} | 0 ...est.js => dropdown-select-box-test.js.es6} | 0 ...tting-test.js => list-setting-test.js.es6} | 0 ...r-test.js => mini-tag-chooser-test.js.es6} | 0 ...elect-test.js => multi-select-test.js.es6} | 0 ...st.js => notifications-button-test.js.es6} | 0 ...ons-test.js => pinned-options-test.js.es6} | 0 ...elper.js => select-kit-test-helper.js.es6} | 0 ...lect-test.js => single-select-test.js.es6} | 0 ...{tag-drop-test.js => tag-drop-test.js.es6} | 0 ...=> topic-notifications-button-test.js.es6} | 0 ...> topic-notifications-options-test.js.es6} | 0 ...ooser-test.js => user-chooser-test.js.es6} | 0 ...utton-test.js => share-button-test.js.es6} | 0 .../{share-button.js => share-button.js.es6} | 0 ...t-field-test.js => text-field-test.js.es6} | 0 ...flow-test.js => text-overflow-test.js.es6} | 0 ...e-input-test.js => time-input-test.js.es6} | 0 ...ctor-test.js => user-selector-test.js.es6} | 0 ...ue-list-test.js => value-list-test.js.es6} | 0 ...or-test.js => avatar-selector-test.js.es6} | 0 ...{bookmark-test.js => bookmark-test.js.es6} | 0 ...unt-test.js => create-account-test.js.es6} | 0 .../{group-test.js => group-test.js.es6} | 0 .../{history-test.js => history-test.js.es6} | 0 ...est.js => preferences-account-test.js.es6} | 0 ... => preferences-second-factor-test.js.es6} | 0 ...test.js => reorder-categories-test.js.es6} | 0 .../{topic-test.js => topic-test.js.es6} | 0 ...{resolver-test.js => resolver-test.js.es6} | 0 .../fixtures/{about.js => about.js.es6} | 0 ...adges_fixture.js => badges_fixture.js.es6} | 0 ...y-fixtures.js => category-fixtures.js.es6} | 0 ...s.js.erb => notification-types.js.es6.erb} | 0 ...rd-general.js => dashboard-general.js.es6} | 0 .../{dashboard.js => dashboard.js.es6} | 0 ...-fixtures.js => directory-fixtures.js.es6} | 0 ..._fixtures.js => discovery_fixtures.js.es6} | 0 .../fixtures/{draft.js => draft.js.es6} | 0 .../fixtures/{drafts.js => drafts.js.es6} | 0 ...roup-fixtures.js => group-fixtures.js.es6} | 0 ...ups-fixtures.js => groups-fixtures.js.es6} | 0 ...xtures.js => notification_fixtures.js.es6} | 0 .../fixtures/{poll.js => poll.js.es6} | 0 .../fixtures/{post.js => post.js.es6} | 0 ...es.js => private_messages_fixtures.js.es6} | 0 .../fixtures/{problems.js => problems.js.es6} | 0 .../fixtures/{reports.js => reports.js.es6} | 0 .../{reports_bulk.js => reports_bulk.js.es6} | 0 ...rch-fixtures.js => search-fixtures.js.es6} | 0 ...on-fixtures.js => session-fixtures.js.es6} | 0 ...{site-fixtures.js => site-fixtures.js.es6} | 0 ...{site_settings.js => site_settings.js.es6} | 0 ...tic_fixtures.js => static_fixtures.js.es6} | 0 .../{top_fixture.js => top_fixture.js.es6} | 0 .../fixtures/{topic.js => topic.js.es6} | 0 .../{user-badges.js => user-badges.js.es6} | 0 ...{user_fixtures.js => user_fixtures.js.es6} | 0 ...tures.js => watched-words-fixtures.js.es6} | 0 test/javascripts/helpers/assertions.js | 13 +++---- ...omponent-test.js => component-test.js.es6} | 0 ...e-pretender.js => create-pretender.js.es6} | 0 .../{create-store.js => create-store.js.es6} | 0 ...ditor-helper.js => d-editor-helper.js.es6} | 0 ...-pretender.js => fixture-pretender.js.es6} | 0 .../{html-helper.js => html-helper.js.es6} | 0 test/javascripts/helpers/init-ember-qunit.js | 2 + ...{qunit-helpers.js => qunit-helpers.js.es6} | 0 ...w-pretender.js => review-pretender.js.es6} | 0 ...kit-helper.js => select-kit-helper.js.es6} | 0 test/javascripts/helpers/site-settings.js | 10 ++--- .../helpers/{site.js => site.js.es6} | 0 ...re-pretender.js => store-pretender.js.es6} | 0 ...er.js => textarea-selection-helper.js.es6} | 0 .../{widget-test.js => widget-test.js.es6} | 0 ...ation-test.js => localization-test.js.es6} | 0 .../{bbcode-test.js => bbcode-test.js.es6} | 0 ...tring-test.js => break-string-test.js.es6} | 0 ...dge-test.js => category-badge-test.js.es6} | 0 ...s => click-track-edit-history-test.js.es6} | 0 ...s => click-track-profile-page-test.js.es6} | 0 ...-track-test.js => click-track-test.js.es6} | 0 ...{computed-test.js => computed-test.js.es6} | 0 ...iscourse-test.js => discourse-test.js.es6} | 0 ...-store-test.js => emoji-store-test.js.es6} | 0 .../lib/{emoji-test.js => emoji-test.js.es6} | 0 ...ormatter-test.js => formatter-test.js.es6} | 0 ...ext-test.js => highlight-text-test.js.es6} | 0 .../lib/{i18n-test.js => i18n-test.js.es6} | 0 ...brary-test.js => icon-library-test.js.es6} | 0 ...re-test.js => key-value-store-test.js.es6} | 0 ...ions-test.js => link-mentions-test.js.es6} | 0 ...script-test.js => load-script-test.js.es6} | 0 ...{oneboxer-test.js => oneboxer-test.js.es6} | 0 ...tore-test.js => preload-store-test.js.es6} | 0 ...y-text-test.js => pretty-text-test.js.es6} | 0 ...anitizer-test.js => sanitizer-test.js.es6} | 0 ...track-test.js => screen-track-test.js.es6} | 0 .../{search-test.js => search-test.js.es6} | 0 .../{sharing-test.js => sharing-test.js.es6} | 0 ...ion-test.js => text-direction-test.js.es6} | 0 ...rkdown-test.js => to-markdown-test.js.es6} | 0 .../{tooltip-test.js => tooltip-test.js.es6} | 0 ...l-test.js => upload-short-url-test.js.es6} | 0 .../{uploads-test.js => uploads-test.js.es6} | 0 .../lib/{url-test.js => url-test.js.es6} | 0 ...search-test.js => user-search-test.js.es6} | 0 ...tilities-test.js => utilities-test.js.es6} | 0 ...ister-test.js => white-lister-test.js.es6} | 0 ....js => grant-badge-controller-test.js.es6} | 0 ...ect-test.js => setting-object-test.js.es6} | 0 ...ingleton-test.js => singleton-test.js.es6} | 0 .../{badge-test.js => badge-test.js.es6} | 0 ...{category-test.js => category-test.js.es6} | 0 ...{composer-test.js => composer-test.js.es6} | 0 ...mail-log-test.js => email-log-test.js.es6} | 0 .../{group-test.js => group-test.js.es6} | 0 .../{invite-test.js => invite-test.js.es6} | 0 ...{nav-item-test.js => nav-item-test.js.es6} | 0 ...stream-test.js => post-stream-test.js.es6} | 0 .../models/{post-test.js => post-test.js.es6} | 0 .../{report-test.js => report-test.js.es6} | 0 ...t-model-test.js => rest-model-test.js.es6} | 0 ...ult-set-test.js => result-set-test.js.es6} | 0 .../{session-test.js => session-test.js.es6} | 0 .../models/{site-test.js => site-test.js.es6} | 0 ...g-test.js => staff-action-log-test.js.es6} | 0 .../{store-test.js => store-test.js.es6} | 0 ...ails-test.js => topic-details-test.js.es6} | 0 .../{topic-test.js => topic-test.js.es6} | 0 ...st.js => topic-tracking-state-test.js.es6} | 0 ...action-test.js => user-action-test.js.es6} | 0 ...r-badge-test.js => user-badge-test.js.es6} | 0 ...drafts-test.js => user-drafts-test.js.es6} | 0 ...stream-test.js => user-stream-test.js.es6} | 0 .../models/{user-test.js => user-test.js.es6} | 0 ...orators-test.js => decorators-test.js.es6} | 0 ...ry-test.js => actions-summary-test.js.es6} | 0 ...flair-test.js => avatar-flair-test.js.es6} | 0 .../{button-test.js => button-test.js.es6} | 0 ... => default-notification-item-test.js.es6} | 0 ...enu-test.js => hamburger-menu-test.js.es6} | 0 .../{header-test.js => header-test.js.es6} | 0 ...ome-logo-test.js => home-logo-test.js.es6} | 0 ...t-links-test.js => post-links-test.js.es6} | 0 ...stream-test.js => post-stream-test.js.es6} | 0 .../{post-test.js => post-test.js.es6} | 0 ...r-name-test.js => poster-name-test.js.es6} | 0 ...-test.js => quick-access-item-test.js.es6} | 0 ...u-test.js => topic-admin-menu-test.js.es6} | 0 ...-test.js => topic-participant-test.js.es6} | 0 ...tatus-test.js => topic-status-test.js.es6} | 0 ...ser-menu-test.js => user-menu-test.js.es6} | 0 .../{widget-test.js => widget-test.js.es6} | 0 281 files changed, 29 insertions(+), 35 deletions(-) rename test/javascripts/acceptance/{about-test.js => about-test.js.es6} (100%) rename test/javascripts/acceptance/{account-created-test.js => account-created-test.js.es6} (100%) rename test/javascripts/acceptance/{admin-emails-test.js => admin-emails-test.js.es6} (100%) rename test/javascripts/acceptance/{admin-search-log-term-test.js => admin-search-log-term-test.js.es6} (100%) rename test/javascripts/acceptance/{admin-search-logs-test.js => admin-search-logs-test.js.es6} (100%) rename test/javascripts/acceptance/{admin-site-settings-test.js => admin-site-settings-test.js.es6} (100%) rename test/javascripts/acceptance/{admin-site-text-test.js => admin-site-text-test.js.es6} (100%) rename test/javascripts/acceptance/{admin-suspend-user-test.js => admin-suspend-user-test.js.es6} (100%) rename test/javascripts/acceptance/{admin-user-badges-test.js => admin-user-badges-test.js.es6} (100%) rename test/javascripts/acceptance/{admin-user-emails-test.js => admin-user-emails-test.js.es6} (100%) rename test/javascripts/acceptance/{admin-user-index-test.js => admin-user-index-test.js.es6} (100%) rename test/javascripts/acceptance/{admin-users-list-test.js => admin-users-list-test.js.es6} (100%) rename test/javascripts/acceptance/{admin-watched-words-test.js => admin-watched-words-test.js.es6} (100%) rename test/javascripts/acceptance/{auth-complete-test.js => auth-complete-test.js.es6} (100%) rename test/javascripts/acceptance/{badges-test.js => badges-test.js.es6} (100%) rename test/javascripts/acceptance/{category-chooser-test.js => category-chooser-test.js.es6} (100%) rename test/javascripts/acceptance/{category-edit-security-test.js => category-edit-security-test.js.es6} (100%) rename test/javascripts/acceptance/{category-edit-test.js => category-edit-test.js.es6} (100%) rename test/javascripts/acceptance/{category-hashtag-test.js => category-hashtag-test.js.es6} (100%) rename test/javascripts/acceptance/{click-track-test.js => click-track-test.js.es6} (100%) rename test/javascripts/acceptance/{composer-actions-test.js => composer-actions-test.js.es6} (100%) rename test/javascripts/acceptance/{composer-attachment-test.js => composer-attachment-test.js.es6} (100%) rename test/javascripts/acceptance/{composer-edit-conflict-test.js => composer-edit-conflict-test.js.es6} (100%) rename test/javascripts/acceptance/{composer-hyperlink-test.js => composer-hyperlink-test.js.es6} (100%) rename test/javascripts/acceptance/{composer-onebox-test.js => composer-onebox-test.js.es6} (100%) rename test/javascripts/acceptance/{composer-test.js => composer-test.js.es6} (100%) rename test/javascripts/acceptance/{composer-topic-links-test.js => composer-topic-links-test.js.es6} (100%) rename test/javascripts/acceptance/{composer-uncategorized-test.js => composer-uncategorized-test.js.es6} (100%) rename test/javascripts/acceptance/{create-account-user-fields-test.js => create-account-user-fields-test.js.es6} (100%) rename test/javascripts/acceptance/{custom-html-set-test.js => custom-html-set-test.js.es6} (100%) rename test/javascripts/acceptance/{custom-html-template-test.js => custom-html-template-test.js.es6} (100%) rename test/javascripts/acceptance/{dashboard-test.js => dashboard-test.js.es6} (100%) rename test/javascripts/acceptance/{email-notice-test.js => email-notice-test.js.es6} (100%) rename test/javascripts/acceptance/{emoji-picker-test.js => emoji-picker-test.js.es6} (100%) rename test/javascripts/acceptance/{emoji-test.js => emoji-test.js.es6} (100%) rename test/javascripts/acceptance/{enforce-second-factor-test.js => enforce-second-factor-test.js.es6} (100%) rename test/javascripts/acceptance/{forgot-password-test.js => forgot-password-test.js.es6} (100%) rename test/javascripts/acceptance/{group-card-mobile-test.js => group-card-mobile-test.js.es6} (100%) rename test/javascripts/acceptance/{group-card-test.js => group-card-test.js.es6} (100%) rename test/javascripts/acceptance/{group-index-test.js => group-index-test.js.es6} (100%) rename test/javascripts/acceptance/{group-manage-interaction-test.js => group-manage-interaction-test.js.es6} (100%) rename test/javascripts/acceptance/{group-manage-logs-test.js => group-manage-logs-test.js.es6} (100%) rename test/javascripts/acceptance/{group-manage-membership-test.js => group-manage-membership-test.js.es6} (100%) rename test/javascripts/acceptance/{group-manage-profile-test.js => group-manage-profile-test.js.es6} (100%) rename test/javascripts/acceptance/{group-requests-test.js => group-requests-test.js.es6} (100%) rename test/javascripts/acceptance/{group-test.js => group-test.js.es6} (100%) rename test/javascripts/acceptance/{groups-index-test.js => groups-index-test.js.es6} (100%) rename test/javascripts/acceptance/{groups-new-test.js => groups-new-test.js.es6} (100%) rename test/javascripts/acceptance/{invite-accept-test.js => invite-accept-test.js.es6} (100%) rename test/javascripts/acceptance/{invite-show-user-fields-test.js => invite-show-user-fields-test.js.es6} (100%) rename test/javascripts/acceptance/{jump-to-test.js => jump-to-test.js.es6} (100%) rename test/javascripts/acceptance/{keyboard-shortcuts-test.js => keyboard-shortcuts-test.js.es6} (100%) rename test/javascripts/acceptance/{login-redirect-test.js => login-redirect-test.js.es6} (100%) rename test/javascripts/acceptance/{login-required-test.js => login-required-test.js.es6} (100%) rename test/javascripts/acceptance/{login-with-email-and-hide-email-address-taken-test.js => login-with-email-and-hide-email-address-taken-test.js.es6} (100%) rename test/javascripts/acceptance/{login-with-email-and-no-social-logins-test.js => login-with-email-and-no-social-logins-test.js.es6} (100%) rename test/javascripts/acceptance/{login-with-email-disabled-test.js => login-with-email-disabled-test.js.es6} (100%) rename test/javascripts/acceptance/{login-with-email-test.js => login-with-email-test.js.es6} (100%) rename test/javascripts/acceptance/{mobile-discovery-test.js => mobile-discovery-test.js.es6} (100%) rename test/javascripts/acceptance/{mobile-sign-in-test.js => mobile-sign-in-test.js.es6} (100%) rename test/javascripts/acceptance/{mobile-users-test.js => mobile-users-test.js.es6} (100%) rename test/javascripts/acceptance/{modal-test.js => modal-test.js.es6} (100%) rename test/javascripts/acceptance/{new-message-test.js => new-message-test.js.es6} (100%) rename test/javascripts/acceptance/{new-topic-test.js => new-topic-test.js.es6} (100%) rename test/javascripts/acceptance/{password-reset-test.js => password-reset-test.js.es6} (100%) rename test/javascripts/acceptance/{personal-message-test.js => personal-message-test.js.es6} (100%) rename test/javascripts/acceptance/{plugin-outlet-connector-class-test.js => plugin-outlet-connector-class-test.js.es6} (100%) rename test/javascripts/acceptance/{plugin-outlet-decorator-test.js => plugin-outlet-decorator-test.js.es6} (100%) rename test/javascripts/acceptance/{plugin-outlet-multi-template-test.js => plugin-outlet-multi-template-test.js.es6} (100%) rename test/javascripts/acceptance/{plugin-outlet-single-template-test.js => plugin-outlet-single-template-test.js.es6} (100%) rename test/javascripts/acceptance/{preferences-test.js => preferences-test.js.es6} (100%) rename test/javascripts/acceptance/{raw-plugin-outlet-test.js => raw-plugin-outlet-test.js.es6} (100%) rename test/javascripts/acceptance/{redirect-to-top-test.js => redirect-to-top-test.js.es6} (100%) rename test/javascripts/acceptance/{reports-test.js => reports-test.js.es6} (100%) rename test/javascripts/acceptance/{review-test.js => review-test.js.es6} (100%) rename test/javascripts/acceptance/{search-full-test.js => search-full-test.js.es6} (100%) rename test/javascripts/acceptance/{search-mobile-test.js => search-mobile-test.js.es6} (100%) rename test/javascripts/acceptance/{search-test.js => search-test.js.es6} (100%) rename test/javascripts/acceptance/{share-and-invite-desktop-test.js => share-and-invite-desktop-test.js.es6} (100%) rename test/javascripts/acceptance/{share-and-invite-mobile-test.js => share-and-invite-mobile-test.js.es6} (100%) rename test/javascripts/acceptance/{shared-drafts-test.js => shared-drafts-test.js.es6} (100%) rename test/javascripts/acceptance/{sign-in-test.js => sign-in-test.js.es6} (100%) rename test/javascripts/acceptance/{static-test.js => static-test.js.es6} (100%) rename test/javascripts/acceptance/{tag-groups-test.js => tag-groups-test.js.es6} (100%) rename test/javascripts/acceptance/{tag-hashtag-test.js => tag-hashtag-test.js.es6} (100%) rename test/javascripts/acceptance/{tags-intersection-test.js => tags-intersection-test.js.es6} (100%) rename test/javascripts/acceptance/{tags-test.js => tags-test.js.es6} (100%) rename test/javascripts/acceptance/{topic-anonymous-test.js => topic-anonymous-test.js.es6} (100%) rename test/javascripts/acceptance/{topic-discovery-test.js => topic-discovery-test.js.es6} (100%) rename test/javascripts/acceptance/{topic-edit-timer-test.js => topic-edit-timer-test.js.es6} (100%) rename test/javascripts/acceptance/{topic-footer-buttons-mobile-test.js => topic-footer-buttons-mobile-test.js.es6} (100%) rename test/javascripts/acceptance/{topic-move-posts-test.js => topic-move-posts-test.js.es6} (100%) rename test/javascripts/acceptance/{topic-notifications-button-test.js => topic-notifications-button-test.js.es6} (100%) rename test/javascripts/acceptance/{topic-test.js => topic-test.js.es6} (100%) rename test/javascripts/acceptance/{unknown-test.js => unknown-test.js.es6} (100%) rename test/javascripts/acceptance/{user-anonymous-test.js => user-anonymous-test.js.es6} (100%) rename test/javascripts/acceptance/{user-card-mobile-test.js => user-card-mobile-test.js.es6} (100%) rename test/javascripts/acceptance/{user-card-test.js => user-card-test.js.es6} (100%) rename test/javascripts/acceptance/{user-drafts-stream-test.js => user-drafts-stream-test.js.es6} (100%) rename test/javascripts/acceptance/{user-test.js => user-test.js.es6} (100%) rename test/javascripts/acceptance/{users-test.js => users-test.js.es6} (100%) rename test/javascripts/admin/components/{group-list-setting-test.js => group-list-setting-test.js.es6} (100%) rename test/javascripts/admin/components/{themes-list-item-test.js => themes-list-item-test.js.es6} (100%) rename test/javascripts/admin/components/{themes-list-test.js => themes-list-test.js.es6} (100%) rename test/javascripts/admin/controllers/{admin-customize-themes-show-test.js => admin-customize-themes-show-test.js.es6} (100%) rename test/javascripts/admin/controllers/{admin-customize-themes-test.js => admin-customize-themes-test.js.es6} (100%) rename test/javascripts/admin/controllers/{admin-user-badges-test.js => admin-user-badges-test.js.es6} (100%) rename test/javascripts/admin/models/{theme-test.js => theme-test.js.es6} (100%) rename test/javascripts/components/{ace-editor-test.js => ace-editor-test.js.es6} (100%) rename test/javascripts/components/{admin-report-test.js => admin-report-test.js.es6} (100%) rename test/javascripts/components/{badge-title-test.js => badge-title-test.js.es6} (100%) rename test/javascripts/components/{d-button-test.js => d-button-test.js.es6} (100%) rename test/javascripts/components/{d-editor-test.js => d-editor-test.js.es6} (100%) rename test/javascripts/components/{d-icon-test.js => d-icon-test.js.es6} (100%) rename test/javascripts/components/{date-input-test.js => date-input-test.js.es6} (100%) rename test/javascripts/components/{date-time-input-range-test.js => date-time-input-range-test.js.es6} (100%) rename test/javascripts/components/{date-time-input-test.js => date-time-input-test.js.es6} (100%) rename test/javascripts/components/{group-membership-button-test.js => group-membership-button-test.js.es6} (100%) rename test/javascripts/components/{html-safe-helper-test.js => html-safe-helper-test.js.es6} (100%) rename test/javascripts/components/{iframed-html-test.js => iframed-html-test.js.es6} (100%) rename test/javascripts/components/{image-uploader-test.js => image-uploader-test.js.es6} (100%) rename test/javascripts/components/{keyboard-shortcuts-test.js => keyboard-shortcuts-test.js.es6} (100%) rename test/javascripts/components/{load-more-test.js => load-more-test.js.es6} (100%) rename test/javascripts/components/{secret-value-list-test.js => secret-value-list-test.js.es6} (100%) rename test/javascripts/components/select-kit/{category-chooser-test.js => category-chooser-test.js.es6} (100%) rename test/javascripts/components/select-kit/{category-drop-test.js => category-drop-test.js.es6} (100%) rename test/javascripts/components/select-kit/{combo-box-test.js => combo-box-test.js.es6} (100%) rename test/javascripts/components/select-kit/{dropdown-select-box-test.js => dropdown-select-box-test.js.es6} (100%) rename test/javascripts/components/select-kit/{list-setting-test.js => list-setting-test.js.es6} (100%) rename test/javascripts/components/select-kit/{mini-tag-chooser-test.js => mini-tag-chooser-test.js.es6} (100%) rename test/javascripts/components/select-kit/{multi-select-test.js => multi-select-test.js.es6} (100%) rename test/javascripts/components/select-kit/{notifications-button-test.js => notifications-button-test.js.es6} (100%) rename test/javascripts/components/select-kit/{pinned-options-test.js => pinned-options-test.js.es6} (100%) rename test/javascripts/components/select-kit/{select-kit-test-helper.js => select-kit-test-helper.js.es6} (100%) rename test/javascripts/components/select-kit/{single-select-test.js => single-select-test.js.es6} (100%) rename test/javascripts/components/select-kit/{tag-drop-test.js => tag-drop-test.js.es6} (100%) rename test/javascripts/components/select-kit/{topic-notifications-button-test.js => topic-notifications-button-test.js.es6} (100%) rename test/javascripts/components/select-kit/{topic-notifications-options-test.js => topic-notifications-options-test.js.es6} (100%) rename test/javascripts/components/select-kit/{user-chooser-test.js => user-chooser-test.js.es6} (100%) rename test/javascripts/components/{share-button-test.js => share-button-test.js.es6} (100%) rename test/javascripts/components/{share-button.js => share-button.js.es6} (100%) rename test/javascripts/components/{text-field-test.js => text-field-test.js.es6} (100%) rename test/javascripts/components/{text-overflow-test.js => text-overflow-test.js.es6} (100%) rename test/javascripts/components/{time-input-test.js => time-input-test.js.es6} (100%) rename test/javascripts/components/{user-selector-test.js => user-selector-test.js.es6} (100%) rename test/javascripts/components/{value-list-test.js => value-list-test.js.es6} (100%) rename test/javascripts/controllers/{avatar-selector-test.js => avatar-selector-test.js.es6} (100%) rename test/javascripts/controllers/{bookmark-test.js => bookmark-test.js.es6} (100%) rename test/javascripts/controllers/{create-account-test.js => create-account-test.js.es6} (100%) rename test/javascripts/controllers/{group-test.js => group-test.js.es6} (100%) rename test/javascripts/controllers/{history-test.js => history-test.js.es6} (100%) rename test/javascripts/controllers/{preferences-account-test.js => preferences-account-test.js.es6} (100%) rename test/javascripts/controllers/{preferences-second-factor-test.js => preferences-second-factor-test.js.es6} (100%) rename test/javascripts/controllers/{reorder-categories-test.js => reorder-categories-test.js.es6} (100%) rename test/javascripts/controllers/{topic-test.js => topic-test.js.es6} (100%) rename test/javascripts/ember/{resolver-test.js => resolver-test.js.es6} (100%) rename test/javascripts/fixtures/{about.js => about.js.es6} (100%) rename test/javascripts/fixtures/{badges_fixture.js => badges_fixture.js.es6} (100%) rename test/javascripts/fixtures/{category-fixtures.js => category-fixtures.js.es6} (100%) rename test/javascripts/fixtures/concerns/{notification-types.js.erb => notification-types.js.es6.erb} (100%) rename test/javascripts/fixtures/{dashboard-general.js => dashboard-general.js.es6} (100%) rename test/javascripts/fixtures/{dashboard.js => dashboard.js.es6} (100%) rename test/javascripts/fixtures/{directory-fixtures.js => directory-fixtures.js.es6} (100%) rename test/javascripts/fixtures/{discovery_fixtures.js => discovery_fixtures.js.es6} (100%) rename test/javascripts/fixtures/{draft.js => draft.js.es6} (100%) rename test/javascripts/fixtures/{drafts.js => drafts.js.es6} (100%) rename test/javascripts/fixtures/{group-fixtures.js => group-fixtures.js.es6} (100%) rename test/javascripts/fixtures/{groups-fixtures.js => groups-fixtures.js.es6} (100%) rename test/javascripts/fixtures/{notification_fixtures.js => notification_fixtures.js.es6} (100%) rename test/javascripts/fixtures/{poll.js => poll.js.es6} (100%) rename test/javascripts/fixtures/{post.js => post.js.es6} (100%) rename test/javascripts/fixtures/{private_messages_fixtures.js => private_messages_fixtures.js.es6} (100%) rename test/javascripts/fixtures/{problems.js => problems.js.es6} (100%) rename test/javascripts/fixtures/{reports.js => reports.js.es6} (100%) rename test/javascripts/fixtures/{reports_bulk.js => reports_bulk.js.es6} (100%) rename test/javascripts/fixtures/{search-fixtures.js => search-fixtures.js.es6} (100%) rename test/javascripts/fixtures/{session-fixtures.js => session-fixtures.js.es6} (100%) rename test/javascripts/fixtures/{site-fixtures.js => site-fixtures.js.es6} (100%) rename test/javascripts/fixtures/{site_settings.js => site_settings.js.es6} (100%) rename test/javascripts/fixtures/{static_fixtures.js => static_fixtures.js.es6} (100%) rename test/javascripts/fixtures/{top_fixture.js => top_fixture.js.es6} (100%) rename test/javascripts/fixtures/{topic.js => topic.js.es6} (100%) rename test/javascripts/fixtures/{user-badges.js => user-badges.js.es6} (100%) rename test/javascripts/fixtures/{user_fixtures.js => user_fixtures.js.es6} (100%) rename test/javascripts/fixtures/{watched-words-fixtures.js => watched-words-fixtures.js.es6} (100%) rename test/javascripts/helpers/{component-test.js => component-test.js.es6} (100%) rename test/javascripts/helpers/{create-pretender.js => create-pretender.js.es6} (100%) rename test/javascripts/helpers/{create-store.js => create-store.js.es6} (100%) rename test/javascripts/helpers/{d-editor-helper.js => d-editor-helper.js.es6} (100%) rename test/javascripts/helpers/{fixture-pretender.js => fixture-pretender.js.es6} (100%) rename test/javascripts/helpers/{html-helper.js => html-helper.js.es6} (100%) create mode 100644 test/javascripts/helpers/init-ember-qunit.js rename test/javascripts/helpers/{qunit-helpers.js => qunit-helpers.js.es6} (100%) rename test/javascripts/helpers/{review-pretender.js => review-pretender.js.es6} (100%) rename test/javascripts/helpers/{select-kit-helper.js => select-kit-helper.js.es6} (100%) rename test/javascripts/helpers/{site.js => site.js.es6} (100%) rename test/javascripts/helpers/{store-pretender.js => store-pretender.js.es6} (100%) rename test/javascripts/helpers/{textarea-selection-helper.js => textarea-selection-helper.js.es6} (100%) rename test/javascripts/helpers/{widget-test.js => widget-test.js.es6} (100%) rename test/javascripts/initializers/{localization-test.js => localization-test.js.es6} (100%) rename test/javascripts/lib/{bbcode-test.js => bbcode-test.js.es6} (100%) rename test/javascripts/lib/{break-string-test.js => break-string-test.js.es6} (100%) rename test/javascripts/lib/{category-badge-test.js => category-badge-test.js.es6} (100%) rename test/javascripts/lib/{click-track-edit-history-test.js => click-track-edit-history-test.js.es6} (100%) rename test/javascripts/lib/{click-track-profile-page-test.js => click-track-profile-page-test.js.es6} (100%) rename test/javascripts/lib/{click-track-test.js => click-track-test.js.es6} (100%) rename test/javascripts/lib/{computed-test.js => computed-test.js.es6} (100%) rename test/javascripts/lib/{discourse-test.js => discourse-test.js.es6} (100%) rename test/javascripts/lib/{emoji-store-test.js => emoji-store-test.js.es6} (100%) rename test/javascripts/lib/{emoji-test.js => emoji-test.js.es6} (100%) rename test/javascripts/lib/{formatter-test.js => formatter-test.js.es6} (100%) rename test/javascripts/lib/{highlight-text-test.js => highlight-text-test.js.es6} (100%) rename test/javascripts/lib/{i18n-test.js => i18n-test.js.es6} (100%) rename test/javascripts/lib/{icon-library-test.js => icon-library-test.js.es6} (100%) rename test/javascripts/lib/{key-value-store-test.js => key-value-store-test.js.es6} (100%) rename test/javascripts/lib/{link-mentions-test.js => link-mentions-test.js.es6} (100%) rename test/javascripts/lib/{load-script-test.js => load-script-test.js.es6} (100%) rename test/javascripts/lib/{oneboxer-test.js => oneboxer-test.js.es6} (100%) rename test/javascripts/lib/{preload-store-test.js => preload-store-test.js.es6} (100%) rename test/javascripts/lib/{pretty-text-test.js => pretty-text-test.js.es6} (100%) rename test/javascripts/lib/{sanitizer-test.js => sanitizer-test.js.es6} (100%) rename test/javascripts/lib/{screen-track-test.js => screen-track-test.js.es6} (100%) rename test/javascripts/lib/{search-test.js => search-test.js.es6} (100%) rename test/javascripts/lib/{sharing-test.js => sharing-test.js.es6} (100%) rename test/javascripts/lib/{text-direction-test.js => text-direction-test.js.es6} (100%) rename test/javascripts/lib/{to-markdown-test.js => to-markdown-test.js.es6} (100%) rename test/javascripts/lib/{tooltip-test.js => tooltip-test.js.es6} (100%) rename test/javascripts/lib/{upload-short-url-test.js => upload-short-url-test.js.es6} (100%) rename test/javascripts/lib/{uploads-test.js => uploads-test.js.es6} (100%) rename test/javascripts/lib/{url-test.js => url-test.js.es6} (100%) rename test/javascripts/lib/{user-search-test.js => user-search-test.js.es6} (100%) rename test/javascripts/lib/{utilities-test.js => utilities-test.js.es6} (100%) rename test/javascripts/lib/{white-lister-test.js => white-lister-test.js.es6} (100%) rename test/javascripts/mixins/{grant-badge-controller-test.js => grant-badge-controller-test.js.es6} (100%) rename test/javascripts/mixins/{setting-object-test.js => setting-object-test.js.es6} (100%) rename test/javascripts/mixins/{singleton-test.js => singleton-test.js.es6} (100%) rename test/javascripts/models/{badge-test.js => badge-test.js.es6} (100%) rename test/javascripts/models/{category-test.js => category-test.js.es6} (100%) rename test/javascripts/models/{composer-test.js => composer-test.js.es6} (100%) rename test/javascripts/models/{email-log-test.js => email-log-test.js.es6} (100%) rename test/javascripts/models/{group-test.js => group-test.js.es6} (100%) rename test/javascripts/models/{invite-test.js => invite-test.js.es6} (100%) rename test/javascripts/models/{nav-item-test.js => nav-item-test.js.es6} (100%) rename test/javascripts/models/{post-stream-test.js => post-stream-test.js.es6} (100%) rename test/javascripts/models/{post-test.js => post-test.js.es6} (100%) rename test/javascripts/models/{report-test.js => report-test.js.es6} (100%) rename test/javascripts/models/{rest-model-test.js => rest-model-test.js.es6} (100%) rename test/javascripts/models/{result-set-test.js => result-set-test.js.es6} (100%) rename test/javascripts/models/{session-test.js => session-test.js.es6} (100%) rename test/javascripts/models/{site-test.js => site-test.js.es6} (100%) rename test/javascripts/models/{staff-action-log-test.js => staff-action-log-test.js.es6} (100%) rename test/javascripts/models/{store-test.js => store-test.js.es6} (100%) rename test/javascripts/models/{topic-details-test.js => topic-details-test.js.es6} (100%) rename test/javascripts/models/{topic-test.js => topic-test.js.es6} (100%) rename test/javascripts/models/{topic-tracking-state-test.js => topic-tracking-state-test.js.es6} (100%) rename test/javascripts/models/{user-action-test.js => user-action-test.js.es6} (100%) rename test/javascripts/models/{user-badge-test.js => user-badge-test.js.es6} (100%) rename test/javascripts/models/{user-drafts-test.js => user-drafts-test.js.es6} (100%) rename test/javascripts/models/{user-stream-test.js => user-stream-test.js.es6} (100%) rename test/javascripts/models/{user-test.js => user-test.js.es6} (100%) rename test/javascripts/utils/{decorators-test.js => decorators-test.js.es6} (100%) rename test/javascripts/widgets/{actions-summary-test.js => actions-summary-test.js.es6} (100%) rename test/javascripts/widgets/{avatar-flair-test.js => avatar-flair-test.js.es6} (100%) rename test/javascripts/widgets/{button-test.js => button-test.js.es6} (100%) rename test/javascripts/widgets/{default-notification-item-test.js => default-notification-item-test.js.es6} (100%) rename test/javascripts/widgets/{hamburger-menu-test.js => hamburger-menu-test.js.es6} (100%) rename test/javascripts/widgets/{header-test.js => header-test.js.es6} (100%) rename test/javascripts/widgets/{home-logo-test.js => home-logo-test.js.es6} (100%) rename test/javascripts/widgets/{post-links-test.js => post-links-test.js.es6} (100%) rename test/javascripts/widgets/{post-stream-test.js => post-stream-test.js.es6} (100%) rename test/javascripts/widgets/{post-test.js => post-test.js.es6} (100%) rename test/javascripts/widgets/{poster-name-test.js => poster-name-test.js.es6} (100%) rename test/javascripts/widgets/{quick-access-item-test.js => quick-access-item-test.js.es6} (100%) rename test/javascripts/widgets/{topic-admin-menu-test.js => topic-admin-menu-test.js.es6} (100%) rename test/javascripts/widgets/{topic-participant-test.js => topic-participant-test.js.es6} (100%) rename test/javascripts/widgets/{topic-status-test.js => topic-status-test.js.es6} (100%) rename test/javascripts/widgets/{user-menu-test.js => user-menu-test.js.es6} (100%) rename test/javascripts/widgets/{widget-test.js => widget-test.js.es6} (100%) diff --git a/lib/discourse_js_processor.rb b/lib/discourse_js_processor.rb index 4060b162250..bbadfa84afa 100644 --- a/lib/discourse_js_processor.rb +++ b/lib/discourse_js_processor.rb @@ -36,27 +36,24 @@ class DiscourseJsProcessor return false unless filename.end_with?(".js") || filename.end_with?(".js.erb") relative_path = filename.sub(Rails.root.to_s, '').sub(/^\/*/, '') - - js_root = "app/assets/javascripts" - test_root = "test/javascripts" - - return false if relative_path.start_with?("#{js_root}/locales/") - - return true if %w( - preload-store - preload-application-data - wizard-start - onpopstate-handler - discourse - google-tag-manager - google-universal-analytics.js - activate-account.js - auto-redirect.js - embed-application - ).any? { |f| relative_path == "#{js_root}/#{f}.js" } - - relative_path =~ /^#{js_root}\/[^\/]+\// || - relative_path =~ /^#{test_root}\/[^\/]+\// + relative_path.start_with?("app/assets/javascripts/discourse/") || + relative_path.start_with?("app/assets/javascripts/admin/") || + relative_path.start_with?("app/assets/javascripts/pretty-text/") || + relative_path.start_with?("app/assets/javascripts/select-kit/") || + relative_path.start_with?("app/assets/javascripts/wizard/") || + relative_path.start_with?("app/assets/javascripts/discourse-common/") || + relative_path.start_with?("app/assets/javascripts/ember-addons/") || + relative_path.start_with?("app/assets/javascripts/confirm-new-email/") || + relative_path == "app/assets/javascripts/preload-store.js" || + relative_path == "app/assets/javascripts/preload-application-data.js" || + relative_path == "app/assets/javascripts/wizard-start.js" || + relative_path == "app/assets/javascripts/onpopstate-handler.js" || + relative_path == "app/assets/javascripts/discourse.js" || + relative_path == "app/assets/javascripts/google-tag-manager.js" || + relative_path == "app/assets/javascripts/google-universal-analytics.js" || + relative_path == "app/assets/javascripts/activate-account.js" || + relative_path == "app/assets/javascripts/auto-redirect.js" || + relative_path == "app/assets/javascripts/embed-application.js" end def self.skip_module?(data) diff --git a/test/javascripts/acceptance/about-test.js b/test/javascripts/acceptance/about-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/about-test.js rename to test/javascripts/acceptance/about-test.js.es6 diff --git a/test/javascripts/acceptance/account-created-test.js b/test/javascripts/acceptance/account-created-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/account-created-test.js rename to test/javascripts/acceptance/account-created-test.js.es6 diff --git a/test/javascripts/acceptance/admin-emails-test.js b/test/javascripts/acceptance/admin-emails-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/admin-emails-test.js rename to test/javascripts/acceptance/admin-emails-test.js.es6 diff --git a/test/javascripts/acceptance/admin-search-log-term-test.js b/test/javascripts/acceptance/admin-search-log-term-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/admin-search-log-term-test.js rename to test/javascripts/acceptance/admin-search-log-term-test.js.es6 diff --git a/test/javascripts/acceptance/admin-search-logs-test.js b/test/javascripts/acceptance/admin-search-logs-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/admin-search-logs-test.js rename to test/javascripts/acceptance/admin-search-logs-test.js.es6 diff --git a/test/javascripts/acceptance/admin-site-settings-test.js b/test/javascripts/acceptance/admin-site-settings-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/admin-site-settings-test.js rename to test/javascripts/acceptance/admin-site-settings-test.js.es6 diff --git a/test/javascripts/acceptance/admin-site-text-test.js b/test/javascripts/acceptance/admin-site-text-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/admin-site-text-test.js rename to test/javascripts/acceptance/admin-site-text-test.js.es6 diff --git a/test/javascripts/acceptance/admin-suspend-user-test.js b/test/javascripts/acceptance/admin-suspend-user-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/admin-suspend-user-test.js rename to test/javascripts/acceptance/admin-suspend-user-test.js.es6 diff --git a/test/javascripts/acceptance/admin-user-badges-test.js b/test/javascripts/acceptance/admin-user-badges-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/admin-user-badges-test.js rename to test/javascripts/acceptance/admin-user-badges-test.js.es6 diff --git a/test/javascripts/acceptance/admin-user-emails-test.js b/test/javascripts/acceptance/admin-user-emails-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/admin-user-emails-test.js rename to test/javascripts/acceptance/admin-user-emails-test.js.es6 diff --git a/test/javascripts/acceptance/admin-user-index-test.js b/test/javascripts/acceptance/admin-user-index-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/admin-user-index-test.js rename to test/javascripts/acceptance/admin-user-index-test.js.es6 diff --git a/test/javascripts/acceptance/admin-users-list-test.js b/test/javascripts/acceptance/admin-users-list-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/admin-users-list-test.js rename to test/javascripts/acceptance/admin-users-list-test.js.es6 diff --git a/test/javascripts/acceptance/admin-watched-words-test.js b/test/javascripts/acceptance/admin-watched-words-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/admin-watched-words-test.js rename to test/javascripts/acceptance/admin-watched-words-test.js.es6 diff --git a/test/javascripts/acceptance/auth-complete-test.js b/test/javascripts/acceptance/auth-complete-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/auth-complete-test.js rename to test/javascripts/acceptance/auth-complete-test.js.es6 diff --git a/test/javascripts/acceptance/badges-test.js b/test/javascripts/acceptance/badges-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/badges-test.js rename to test/javascripts/acceptance/badges-test.js.es6 diff --git a/test/javascripts/acceptance/category-chooser-test.js b/test/javascripts/acceptance/category-chooser-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/category-chooser-test.js rename to test/javascripts/acceptance/category-chooser-test.js.es6 diff --git a/test/javascripts/acceptance/category-edit-security-test.js b/test/javascripts/acceptance/category-edit-security-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/category-edit-security-test.js rename to test/javascripts/acceptance/category-edit-security-test.js.es6 diff --git a/test/javascripts/acceptance/category-edit-test.js b/test/javascripts/acceptance/category-edit-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/category-edit-test.js rename to test/javascripts/acceptance/category-edit-test.js.es6 diff --git a/test/javascripts/acceptance/category-hashtag-test.js b/test/javascripts/acceptance/category-hashtag-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/category-hashtag-test.js rename to test/javascripts/acceptance/category-hashtag-test.js.es6 diff --git a/test/javascripts/acceptance/click-track-test.js b/test/javascripts/acceptance/click-track-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/click-track-test.js rename to test/javascripts/acceptance/click-track-test.js.es6 diff --git a/test/javascripts/acceptance/composer-actions-test.js b/test/javascripts/acceptance/composer-actions-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/composer-actions-test.js rename to test/javascripts/acceptance/composer-actions-test.js.es6 diff --git a/test/javascripts/acceptance/composer-attachment-test.js b/test/javascripts/acceptance/composer-attachment-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/composer-attachment-test.js rename to test/javascripts/acceptance/composer-attachment-test.js.es6 diff --git a/test/javascripts/acceptance/composer-edit-conflict-test.js b/test/javascripts/acceptance/composer-edit-conflict-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/composer-edit-conflict-test.js rename to test/javascripts/acceptance/composer-edit-conflict-test.js.es6 diff --git a/test/javascripts/acceptance/composer-hyperlink-test.js b/test/javascripts/acceptance/composer-hyperlink-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/composer-hyperlink-test.js rename to test/javascripts/acceptance/composer-hyperlink-test.js.es6 diff --git a/test/javascripts/acceptance/composer-onebox-test.js b/test/javascripts/acceptance/composer-onebox-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/composer-onebox-test.js rename to test/javascripts/acceptance/composer-onebox-test.js.es6 diff --git a/test/javascripts/acceptance/composer-test.js b/test/javascripts/acceptance/composer-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/composer-test.js rename to test/javascripts/acceptance/composer-test.js.es6 diff --git a/test/javascripts/acceptance/composer-topic-links-test.js b/test/javascripts/acceptance/composer-topic-links-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/composer-topic-links-test.js rename to test/javascripts/acceptance/composer-topic-links-test.js.es6 diff --git a/test/javascripts/acceptance/composer-uncategorized-test.js b/test/javascripts/acceptance/composer-uncategorized-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/composer-uncategorized-test.js rename to test/javascripts/acceptance/composer-uncategorized-test.js.es6 diff --git a/test/javascripts/acceptance/create-account-user-fields-test.js b/test/javascripts/acceptance/create-account-user-fields-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/create-account-user-fields-test.js rename to test/javascripts/acceptance/create-account-user-fields-test.js.es6 diff --git a/test/javascripts/acceptance/custom-html-set-test.js b/test/javascripts/acceptance/custom-html-set-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/custom-html-set-test.js rename to test/javascripts/acceptance/custom-html-set-test.js.es6 diff --git a/test/javascripts/acceptance/custom-html-template-test.js b/test/javascripts/acceptance/custom-html-template-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/custom-html-template-test.js rename to test/javascripts/acceptance/custom-html-template-test.js.es6 diff --git a/test/javascripts/acceptance/dashboard-test.js b/test/javascripts/acceptance/dashboard-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/dashboard-test.js rename to test/javascripts/acceptance/dashboard-test.js.es6 diff --git a/test/javascripts/acceptance/email-notice-test.js b/test/javascripts/acceptance/email-notice-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/email-notice-test.js rename to test/javascripts/acceptance/email-notice-test.js.es6 diff --git a/test/javascripts/acceptance/emoji-picker-test.js b/test/javascripts/acceptance/emoji-picker-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/emoji-picker-test.js rename to test/javascripts/acceptance/emoji-picker-test.js.es6 diff --git a/test/javascripts/acceptance/emoji-test.js b/test/javascripts/acceptance/emoji-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/emoji-test.js rename to test/javascripts/acceptance/emoji-test.js.es6 diff --git a/test/javascripts/acceptance/enforce-second-factor-test.js b/test/javascripts/acceptance/enforce-second-factor-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/enforce-second-factor-test.js rename to test/javascripts/acceptance/enforce-second-factor-test.js.es6 diff --git a/test/javascripts/acceptance/forgot-password-test.js b/test/javascripts/acceptance/forgot-password-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/forgot-password-test.js rename to test/javascripts/acceptance/forgot-password-test.js.es6 diff --git a/test/javascripts/acceptance/group-card-mobile-test.js b/test/javascripts/acceptance/group-card-mobile-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/group-card-mobile-test.js rename to test/javascripts/acceptance/group-card-mobile-test.js.es6 diff --git a/test/javascripts/acceptance/group-card-test.js b/test/javascripts/acceptance/group-card-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/group-card-test.js rename to test/javascripts/acceptance/group-card-test.js.es6 diff --git a/test/javascripts/acceptance/group-index-test.js b/test/javascripts/acceptance/group-index-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/group-index-test.js rename to test/javascripts/acceptance/group-index-test.js.es6 diff --git a/test/javascripts/acceptance/group-manage-interaction-test.js b/test/javascripts/acceptance/group-manage-interaction-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/group-manage-interaction-test.js rename to test/javascripts/acceptance/group-manage-interaction-test.js.es6 diff --git a/test/javascripts/acceptance/group-manage-logs-test.js b/test/javascripts/acceptance/group-manage-logs-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/group-manage-logs-test.js rename to test/javascripts/acceptance/group-manage-logs-test.js.es6 diff --git a/test/javascripts/acceptance/group-manage-membership-test.js b/test/javascripts/acceptance/group-manage-membership-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/group-manage-membership-test.js rename to test/javascripts/acceptance/group-manage-membership-test.js.es6 diff --git a/test/javascripts/acceptance/group-manage-profile-test.js b/test/javascripts/acceptance/group-manage-profile-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/group-manage-profile-test.js rename to test/javascripts/acceptance/group-manage-profile-test.js.es6 diff --git a/test/javascripts/acceptance/group-requests-test.js b/test/javascripts/acceptance/group-requests-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/group-requests-test.js rename to test/javascripts/acceptance/group-requests-test.js.es6 diff --git a/test/javascripts/acceptance/group-test.js b/test/javascripts/acceptance/group-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/group-test.js rename to test/javascripts/acceptance/group-test.js.es6 diff --git a/test/javascripts/acceptance/groups-index-test.js b/test/javascripts/acceptance/groups-index-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/groups-index-test.js rename to test/javascripts/acceptance/groups-index-test.js.es6 diff --git a/test/javascripts/acceptance/groups-new-test.js b/test/javascripts/acceptance/groups-new-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/groups-new-test.js rename to test/javascripts/acceptance/groups-new-test.js.es6 diff --git a/test/javascripts/acceptance/invite-accept-test.js b/test/javascripts/acceptance/invite-accept-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/invite-accept-test.js rename to test/javascripts/acceptance/invite-accept-test.js.es6 diff --git a/test/javascripts/acceptance/invite-show-user-fields-test.js b/test/javascripts/acceptance/invite-show-user-fields-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/invite-show-user-fields-test.js rename to test/javascripts/acceptance/invite-show-user-fields-test.js.es6 diff --git a/test/javascripts/acceptance/jump-to-test.js b/test/javascripts/acceptance/jump-to-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/jump-to-test.js rename to test/javascripts/acceptance/jump-to-test.js.es6 diff --git a/test/javascripts/acceptance/keyboard-shortcuts-test.js b/test/javascripts/acceptance/keyboard-shortcuts-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/keyboard-shortcuts-test.js rename to test/javascripts/acceptance/keyboard-shortcuts-test.js.es6 diff --git a/test/javascripts/acceptance/login-redirect-test.js b/test/javascripts/acceptance/login-redirect-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/login-redirect-test.js rename to test/javascripts/acceptance/login-redirect-test.js.es6 diff --git a/test/javascripts/acceptance/login-required-test.js b/test/javascripts/acceptance/login-required-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/login-required-test.js rename to test/javascripts/acceptance/login-required-test.js.es6 diff --git a/test/javascripts/acceptance/login-with-email-and-hide-email-address-taken-test.js b/test/javascripts/acceptance/login-with-email-and-hide-email-address-taken-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/login-with-email-and-hide-email-address-taken-test.js rename to test/javascripts/acceptance/login-with-email-and-hide-email-address-taken-test.js.es6 diff --git a/test/javascripts/acceptance/login-with-email-and-no-social-logins-test.js b/test/javascripts/acceptance/login-with-email-and-no-social-logins-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/login-with-email-and-no-social-logins-test.js rename to test/javascripts/acceptance/login-with-email-and-no-social-logins-test.js.es6 diff --git a/test/javascripts/acceptance/login-with-email-disabled-test.js b/test/javascripts/acceptance/login-with-email-disabled-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/login-with-email-disabled-test.js rename to test/javascripts/acceptance/login-with-email-disabled-test.js.es6 diff --git a/test/javascripts/acceptance/login-with-email-test.js b/test/javascripts/acceptance/login-with-email-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/login-with-email-test.js rename to test/javascripts/acceptance/login-with-email-test.js.es6 diff --git a/test/javascripts/acceptance/mobile-discovery-test.js b/test/javascripts/acceptance/mobile-discovery-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/mobile-discovery-test.js rename to test/javascripts/acceptance/mobile-discovery-test.js.es6 diff --git a/test/javascripts/acceptance/mobile-sign-in-test.js b/test/javascripts/acceptance/mobile-sign-in-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/mobile-sign-in-test.js rename to test/javascripts/acceptance/mobile-sign-in-test.js.es6 diff --git a/test/javascripts/acceptance/mobile-users-test.js b/test/javascripts/acceptance/mobile-users-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/mobile-users-test.js rename to test/javascripts/acceptance/mobile-users-test.js.es6 diff --git a/test/javascripts/acceptance/modal-test.js b/test/javascripts/acceptance/modal-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/modal-test.js rename to test/javascripts/acceptance/modal-test.js.es6 diff --git a/test/javascripts/acceptance/new-message-test.js b/test/javascripts/acceptance/new-message-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/new-message-test.js rename to test/javascripts/acceptance/new-message-test.js.es6 diff --git a/test/javascripts/acceptance/new-topic-test.js b/test/javascripts/acceptance/new-topic-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/new-topic-test.js rename to test/javascripts/acceptance/new-topic-test.js.es6 diff --git a/test/javascripts/acceptance/password-reset-test.js b/test/javascripts/acceptance/password-reset-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/password-reset-test.js rename to test/javascripts/acceptance/password-reset-test.js.es6 diff --git a/test/javascripts/acceptance/personal-message-test.js b/test/javascripts/acceptance/personal-message-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/personal-message-test.js rename to test/javascripts/acceptance/personal-message-test.js.es6 diff --git a/test/javascripts/acceptance/plugin-outlet-connector-class-test.js b/test/javascripts/acceptance/plugin-outlet-connector-class-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/plugin-outlet-connector-class-test.js rename to test/javascripts/acceptance/plugin-outlet-connector-class-test.js.es6 diff --git a/test/javascripts/acceptance/plugin-outlet-decorator-test.js b/test/javascripts/acceptance/plugin-outlet-decorator-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/plugin-outlet-decorator-test.js rename to test/javascripts/acceptance/plugin-outlet-decorator-test.js.es6 diff --git a/test/javascripts/acceptance/plugin-outlet-multi-template-test.js b/test/javascripts/acceptance/plugin-outlet-multi-template-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/plugin-outlet-multi-template-test.js rename to test/javascripts/acceptance/plugin-outlet-multi-template-test.js.es6 diff --git a/test/javascripts/acceptance/plugin-outlet-single-template-test.js b/test/javascripts/acceptance/plugin-outlet-single-template-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/plugin-outlet-single-template-test.js rename to test/javascripts/acceptance/plugin-outlet-single-template-test.js.es6 diff --git a/test/javascripts/acceptance/preferences-test.js b/test/javascripts/acceptance/preferences-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/preferences-test.js rename to test/javascripts/acceptance/preferences-test.js.es6 diff --git a/test/javascripts/acceptance/raw-plugin-outlet-test.js b/test/javascripts/acceptance/raw-plugin-outlet-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/raw-plugin-outlet-test.js rename to test/javascripts/acceptance/raw-plugin-outlet-test.js.es6 diff --git a/test/javascripts/acceptance/redirect-to-top-test.js b/test/javascripts/acceptance/redirect-to-top-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/redirect-to-top-test.js rename to test/javascripts/acceptance/redirect-to-top-test.js.es6 diff --git a/test/javascripts/acceptance/reports-test.js b/test/javascripts/acceptance/reports-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/reports-test.js rename to test/javascripts/acceptance/reports-test.js.es6 diff --git a/test/javascripts/acceptance/review-test.js b/test/javascripts/acceptance/review-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/review-test.js rename to test/javascripts/acceptance/review-test.js.es6 diff --git a/test/javascripts/acceptance/search-full-test.js b/test/javascripts/acceptance/search-full-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/search-full-test.js rename to test/javascripts/acceptance/search-full-test.js.es6 diff --git a/test/javascripts/acceptance/search-mobile-test.js b/test/javascripts/acceptance/search-mobile-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/search-mobile-test.js rename to test/javascripts/acceptance/search-mobile-test.js.es6 diff --git a/test/javascripts/acceptance/search-test.js b/test/javascripts/acceptance/search-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/search-test.js rename to test/javascripts/acceptance/search-test.js.es6 diff --git a/test/javascripts/acceptance/share-and-invite-desktop-test.js b/test/javascripts/acceptance/share-and-invite-desktop-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/share-and-invite-desktop-test.js rename to test/javascripts/acceptance/share-and-invite-desktop-test.js.es6 diff --git a/test/javascripts/acceptance/share-and-invite-mobile-test.js b/test/javascripts/acceptance/share-and-invite-mobile-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/share-and-invite-mobile-test.js rename to test/javascripts/acceptance/share-and-invite-mobile-test.js.es6 diff --git a/test/javascripts/acceptance/shared-drafts-test.js b/test/javascripts/acceptance/shared-drafts-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/shared-drafts-test.js rename to test/javascripts/acceptance/shared-drafts-test.js.es6 diff --git a/test/javascripts/acceptance/sign-in-test.js b/test/javascripts/acceptance/sign-in-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/sign-in-test.js rename to test/javascripts/acceptance/sign-in-test.js.es6 diff --git a/test/javascripts/acceptance/static-test.js b/test/javascripts/acceptance/static-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/static-test.js rename to test/javascripts/acceptance/static-test.js.es6 diff --git a/test/javascripts/acceptance/tag-groups-test.js b/test/javascripts/acceptance/tag-groups-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/tag-groups-test.js rename to test/javascripts/acceptance/tag-groups-test.js.es6 diff --git a/test/javascripts/acceptance/tag-hashtag-test.js b/test/javascripts/acceptance/tag-hashtag-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/tag-hashtag-test.js rename to test/javascripts/acceptance/tag-hashtag-test.js.es6 diff --git a/test/javascripts/acceptance/tags-intersection-test.js b/test/javascripts/acceptance/tags-intersection-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/tags-intersection-test.js rename to test/javascripts/acceptance/tags-intersection-test.js.es6 diff --git a/test/javascripts/acceptance/tags-test.js b/test/javascripts/acceptance/tags-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/tags-test.js rename to test/javascripts/acceptance/tags-test.js.es6 diff --git a/test/javascripts/acceptance/topic-anonymous-test.js b/test/javascripts/acceptance/topic-anonymous-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/topic-anonymous-test.js rename to test/javascripts/acceptance/topic-anonymous-test.js.es6 diff --git a/test/javascripts/acceptance/topic-discovery-test.js b/test/javascripts/acceptance/topic-discovery-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/topic-discovery-test.js rename to test/javascripts/acceptance/topic-discovery-test.js.es6 diff --git a/test/javascripts/acceptance/topic-edit-timer-test.js b/test/javascripts/acceptance/topic-edit-timer-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/topic-edit-timer-test.js rename to test/javascripts/acceptance/topic-edit-timer-test.js.es6 diff --git a/test/javascripts/acceptance/topic-footer-buttons-mobile-test.js b/test/javascripts/acceptance/topic-footer-buttons-mobile-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/topic-footer-buttons-mobile-test.js rename to test/javascripts/acceptance/topic-footer-buttons-mobile-test.js.es6 diff --git a/test/javascripts/acceptance/topic-move-posts-test.js b/test/javascripts/acceptance/topic-move-posts-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/topic-move-posts-test.js rename to test/javascripts/acceptance/topic-move-posts-test.js.es6 diff --git a/test/javascripts/acceptance/topic-notifications-button-test.js b/test/javascripts/acceptance/topic-notifications-button-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/topic-notifications-button-test.js rename to test/javascripts/acceptance/topic-notifications-button-test.js.es6 diff --git a/test/javascripts/acceptance/topic-test.js b/test/javascripts/acceptance/topic-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/topic-test.js rename to test/javascripts/acceptance/topic-test.js.es6 diff --git a/test/javascripts/acceptance/unknown-test.js b/test/javascripts/acceptance/unknown-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/unknown-test.js rename to test/javascripts/acceptance/unknown-test.js.es6 diff --git a/test/javascripts/acceptance/user-anonymous-test.js b/test/javascripts/acceptance/user-anonymous-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/user-anonymous-test.js rename to test/javascripts/acceptance/user-anonymous-test.js.es6 diff --git a/test/javascripts/acceptance/user-card-mobile-test.js b/test/javascripts/acceptance/user-card-mobile-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/user-card-mobile-test.js rename to test/javascripts/acceptance/user-card-mobile-test.js.es6 diff --git a/test/javascripts/acceptance/user-card-test.js b/test/javascripts/acceptance/user-card-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/user-card-test.js rename to test/javascripts/acceptance/user-card-test.js.es6 diff --git a/test/javascripts/acceptance/user-drafts-stream-test.js b/test/javascripts/acceptance/user-drafts-stream-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/user-drafts-stream-test.js rename to test/javascripts/acceptance/user-drafts-stream-test.js.es6 diff --git a/test/javascripts/acceptance/user-test.js b/test/javascripts/acceptance/user-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/user-test.js rename to test/javascripts/acceptance/user-test.js.es6 diff --git a/test/javascripts/acceptance/users-test.js b/test/javascripts/acceptance/users-test.js.es6 similarity index 100% rename from test/javascripts/acceptance/users-test.js rename to test/javascripts/acceptance/users-test.js.es6 diff --git a/test/javascripts/admin/components/group-list-setting-test.js b/test/javascripts/admin/components/group-list-setting-test.js.es6 similarity index 100% rename from test/javascripts/admin/components/group-list-setting-test.js rename to test/javascripts/admin/components/group-list-setting-test.js.es6 diff --git a/test/javascripts/admin/components/themes-list-item-test.js b/test/javascripts/admin/components/themes-list-item-test.js.es6 similarity index 100% rename from test/javascripts/admin/components/themes-list-item-test.js rename to test/javascripts/admin/components/themes-list-item-test.js.es6 diff --git a/test/javascripts/admin/components/themes-list-test.js b/test/javascripts/admin/components/themes-list-test.js.es6 similarity index 100% rename from test/javascripts/admin/components/themes-list-test.js rename to test/javascripts/admin/components/themes-list-test.js.es6 diff --git a/test/javascripts/admin/controllers/admin-customize-themes-show-test.js b/test/javascripts/admin/controllers/admin-customize-themes-show-test.js.es6 similarity index 100% rename from test/javascripts/admin/controllers/admin-customize-themes-show-test.js rename to test/javascripts/admin/controllers/admin-customize-themes-show-test.js.es6 diff --git a/test/javascripts/admin/controllers/admin-customize-themes-test.js b/test/javascripts/admin/controllers/admin-customize-themes-test.js.es6 similarity index 100% rename from test/javascripts/admin/controllers/admin-customize-themes-test.js rename to test/javascripts/admin/controllers/admin-customize-themes-test.js.es6 diff --git a/test/javascripts/admin/controllers/admin-user-badges-test.js b/test/javascripts/admin/controllers/admin-user-badges-test.js.es6 similarity index 100% rename from test/javascripts/admin/controllers/admin-user-badges-test.js rename to test/javascripts/admin/controllers/admin-user-badges-test.js.es6 diff --git a/test/javascripts/admin/models/theme-test.js b/test/javascripts/admin/models/theme-test.js.es6 similarity index 100% rename from test/javascripts/admin/models/theme-test.js rename to test/javascripts/admin/models/theme-test.js.es6 diff --git a/test/javascripts/components/ace-editor-test.js b/test/javascripts/components/ace-editor-test.js.es6 similarity index 100% rename from test/javascripts/components/ace-editor-test.js rename to test/javascripts/components/ace-editor-test.js.es6 diff --git a/test/javascripts/components/admin-report-test.js b/test/javascripts/components/admin-report-test.js.es6 similarity index 100% rename from test/javascripts/components/admin-report-test.js rename to test/javascripts/components/admin-report-test.js.es6 diff --git a/test/javascripts/components/badge-title-test.js b/test/javascripts/components/badge-title-test.js.es6 similarity index 100% rename from test/javascripts/components/badge-title-test.js rename to test/javascripts/components/badge-title-test.js.es6 diff --git a/test/javascripts/components/d-button-test.js b/test/javascripts/components/d-button-test.js.es6 similarity index 100% rename from test/javascripts/components/d-button-test.js rename to test/javascripts/components/d-button-test.js.es6 diff --git a/test/javascripts/components/d-editor-test.js b/test/javascripts/components/d-editor-test.js.es6 similarity index 100% rename from test/javascripts/components/d-editor-test.js rename to test/javascripts/components/d-editor-test.js.es6 diff --git a/test/javascripts/components/d-icon-test.js b/test/javascripts/components/d-icon-test.js.es6 similarity index 100% rename from test/javascripts/components/d-icon-test.js rename to test/javascripts/components/d-icon-test.js.es6 diff --git a/test/javascripts/components/date-input-test.js b/test/javascripts/components/date-input-test.js.es6 similarity index 100% rename from test/javascripts/components/date-input-test.js rename to test/javascripts/components/date-input-test.js.es6 diff --git a/test/javascripts/components/date-time-input-range-test.js b/test/javascripts/components/date-time-input-range-test.js.es6 similarity index 100% rename from test/javascripts/components/date-time-input-range-test.js rename to test/javascripts/components/date-time-input-range-test.js.es6 diff --git a/test/javascripts/components/date-time-input-test.js b/test/javascripts/components/date-time-input-test.js.es6 similarity index 100% rename from test/javascripts/components/date-time-input-test.js rename to test/javascripts/components/date-time-input-test.js.es6 diff --git a/test/javascripts/components/group-membership-button-test.js b/test/javascripts/components/group-membership-button-test.js.es6 similarity index 100% rename from test/javascripts/components/group-membership-button-test.js rename to test/javascripts/components/group-membership-button-test.js.es6 diff --git a/test/javascripts/components/html-safe-helper-test.js b/test/javascripts/components/html-safe-helper-test.js.es6 similarity index 100% rename from test/javascripts/components/html-safe-helper-test.js rename to test/javascripts/components/html-safe-helper-test.js.es6 diff --git a/test/javascripts/components/iframed-html-test.js b/test/javascripts/components/iframed-html-test.js.es6 similarity index 100% rename from test/javascripts/components/iframed-html-test.js rename to test/javascripts/components/iframed-html-test.js.es6 diff --git a/test/javascripts/components/image-uploader-test.js b/test/javascripts/components/image-uploader-test.js.es6 similarity index 100% rename from test/javascripts/components/image-uploader-test.js rename to test/javascripts/components/image-uploader-test.js.es6 diff --git a/test/javascripts/components/keyboard-shortcuts-test.js b/test/javascripts/components/keyboard-shortcuts-test.js.es6 similarity index 100% rename from test/javascripts/components/keyboard-shortcuts-test.js rename to test/javascripts/components/keyboard-shortcuts-test.js.es6 diff --git a/test/javascripts/components/load-more-test.js b/test/javascripts/components/load-more-test.js.es6 similarity index 100% rename from test/javascripts/components/load-more-test.js rename to test/javascripts/components/load-more-test.js.es6 diff --git a/test/javascripts/components/secret-value-list-test.js b/test/javascripts/components/secret-value-list-test.js.es6 similarity index 100% rename from test/javascripts/components/secret-value-list-test.js rename to test/javascripts/components/secret-value-list-test.js.es6 diff --git a/test/javascripts/components/select-kit/category-chooser-test.js b/test/javascripts/components/select-kit/category-chooser-test.js.es6 similarity index 100% rename from test/javascripts/components/select-kit/category-chooser-test.js rename to test/javascripts/components/select-kit/category-chooser-test.js.es6 diff --git a/test/javascripts/components/select-kit/category-drop-test.js b/test/javascripts/components/select-kit/category-drop-test.js.es6 similarity index 100% rename from test/javascripts/components/select-kit/category-drop-test.js rename to test/javascripts/components/select-kit/category-drop-test.js.es6 diff --git a/test/javascripts/components/select-kit/combo-box-test.js b/test/javascripts/components/select-kit/combo-box-test.js.es6 similarity index 100% rename from test/javascripts/components/select-kit/combo-box-test.js rename to test/javascripts/components/select-kit/combo-box-test.js.es6 diff --git a/test/javascripts/components/select-kit/dropdown-select-box-test.js b/test/javascripts/components/select-kit/dropdown-select-box-test.js.es6 similarity index 100% rename from test/javascripts/components/select-kit/dropdown-select-box-test.js rename to test/javascripts/components/select-kit/dropdown-select-box-test.js.es6 diff --git a/test/javascripts/components/select-kit/list-setting-test.js b/test/javascripts/components/select-kit/list-setting-test.js.es6 similarity index 100% rename from test/javascripts/components/select-kit/list-setting-test.js rename to test/javascripts/components/select-kit/list-setting-test.js.es6 diff --git a/test/javascripts/components/select-kit/mini-tag-chooser-test.js b/test/javascripts/components/select-kit/mini-tag-chooser-test.js.es6 similarity index 100% rename from test/javascripts/components/select-kit/mini-tag-chooser-test.js rename to test/javascripts/components/select-kit/mini-tag-chooser-test.js.es6 diff --git a/test/javascripts/components/select-kit/multi-select-test.js b/test/javascripts/components/select-kit/multi-select-test.js.es6 similarity index 100% rename from test/javascripts/components/select-kit/multi-select-test.js rename to test/javascripts/components/select-kit/multi-select-test.js.es6 diff --git a/test/javascripts/components/select-kit/notifications-button-test.js b/test/javascripts/components/select-kit/notifications-button-test.js.es6 similarity index 100% rename from test/javascripts/components/select-kit/notifications-button-test.js rename to test/javascripts/components/select-kit/notifications-button-test.js.es6 diff --git a/test/javascripts/components/select-kit/pinned-options-test.js b/test/javascripts/components/select-kit/pinned-options-test.js.es6 similarity index 100% rename from test/javascripts/components/select-kit/pinned-options-test.js rename to test/javascripts/components/select-kit/pinned-options-test.js.es6 diff --git a/test/javascripts/components/select-kit/select-kit-test-helper.js b/test/javascripts/components/select-kit/select-kit-test-helper.js.es6 similarity index 100% rename from test/javascripts/components/select-kit/select-kit-test-helper.js rename to test/javascripts/components/select-kit/select-kit-test-helper.js.es6 diff --git a/test/javascripts/components/select-kit/single-select-test.js b/test/javascripts/components/select-kit/single-select-test.js.es6 similarity index 100% rename from test/javascripts/components/select-kit/single-select-test.js rename to test/javascripts/components/select-kit/single-select-test.js.es6 diff --git a/test/javascripts/components/select-kit/tag-drop-test.js b/test/javascripts/components/select-kit/tag-drop-test.js.es6 similarity index 100% rename from test/javascripts/components/select-kit/tag-drop-test.js rename to test/javascripts/components/select-kit/tag-drop-test.js.es6 diff --git a/test/javascripts/components/select-kit/topic-notifications-button-test.js b/test/javascripts/components/select-kit/topic-notifications-button-test.js.es6 similarity index 100% rename from test/javascripts/components/select-kit/topic-notifications-button-test.js rename to test/javascripts/components/select-kit/topic-notifications-button-test.js.es6 diff --git a/test/javascripts/components/select-kit/topic-notifications-options-test.js b/test/javascripts/components/select-kit/topic-notifications-options-test.js.es6 similarity index 100% rename from test/javascripts/components/select-kit/topic-notifications-options-test.js rename to test/javascripts/components/select-kit/topic-notifications-options-test.js.es6 diff --git a/test/javascripts/components/select-kit/user-chooser-test.js b/test/javascripts/components/select-kit/user-chooser-test.js.es6 similarity index 100% rename from test/javascripts/components/select-kit/user-chooser-test.js rename to test/javascripts/components/select-kit/user-chooser-test.js.es6 diff --git a/test/javascripts/components/share-button-test.js b/test/javascripts/components/share-button-test.js.es6 similarity index 100% rename from test/javascripts/components/share-button-test.js rename to test/javascripts/components/share-button-test.js.es6 diff --git a/test/javascripts/components/share-button.js b/test/javascripts/components/share-button.js.es6 similarity index 100% rename from test/javascripts/components/share-button.js rename to test/javascripts/components/share-button.js.es6 diff --git a/test/javascripts/components/text-field-test.js b/test/javascripts/components/text-field-test.js.es6 similarity index 100% rename from test/javascripts/components/text-field-test.js rename to test/javascripts/components/text-field-test.js.es6 diff --git a/test/javascripts/components/text-overflow-test.js b/test/javascripts/components/text-overflow-test.js.es6 similarity index 100% rename from test/javascripts/components/text-overflow-test.js rename to test/javascripts/components/text-overflow-test.js.es6 diff --git a/test/javascripts/components/time-input-test.js b/test/javascripts/components/time-input-test.js.es6 similarity index 100% rename from test/javascripts/components/time-input-test.js rename to test/javascripts/components/time-input-test.js.es6 diff --git a/test/javascripts/components/user-selector-test.js b/test/javascripts/components/user-selector-test.js.es6 similarity index 100% rename from test/javascripts/components/user-selector-test.js rename to test/javascripts/components/user-selector-test.js.es6 diff --git a/test/javascripts/components/value-list-test.js b/test/javascripts/components/value-list-test.js.es6 similarity index 100% rename from test/javascripts/components/value-list-test.js rename to test/javascripts/components/value-list-test.js.es6 diff --git a/test/javascripts/controllers/avatar-selector-test.js b/test/javascripts/controllers/avatar-selector-test.js.es6 similarity index 100% rename from test/javascripts/controllers/avatar-selector-test.js rename to test/javascripts/controllers/avatar-selector-test.js.es6 diff --git a/test/javascripts/controllers/bookmark-test.js b/test/javascripts/controllers/bookmark-test.js.es6 similarity index 100% rename from test/javascripts/controllers/bookmark-test.js rename to test/javascripts/controllers/bookmark-test.js.es6 diff --git a/test/javascripts/controllers/create-account-test.js b/test/javascripts/controllers/create-account-test.js.es6 similarity index 100% rename from test/javascripts/controllers/create-account-test.js rename to test/javascripts/controllers/create-account-test.js.es6 diff --git a/test/javascripts/controllers/group-test.js b/test/javascripts/controllers/group-test.js.es6 similarity index 100% rename from test/javascripts/controllers/group-test.js rename to test/javascripts/controllers/group-test.js.es6 diff --git a/test/javascripts/controllers/history-test.js b/test/javascripts/controllers/history-test.js.es6 similarity index 100% rename from test/javascripts/controllers/history-test.js rename to test/javascripts/controllers/history-test.js.es6 diff --git a/test/javascripts/controllers/preferences-account-test.js b/test/javascripts/controllers/preferences-account-test.js.es6 similarity index 100% rename from test/javascripts/controllers/preferences-account-test.js rename to test/javascripts/controllers/preferences-account-test.js.es6 diff --git a/test/javascripts/controllers/preferences-second-factor-test.js b/test/javascripts/controllers/preferences-second-factor-test.js.es6 similarity index 100% rename from test/javascripts/controllers/preferences-second-factor-test.js rename to test/javascripts/controllers/preferences-second-factor-test.js.es6 diff --git a/test/javascripts/controllers/reorder-categories-test.js b/test/javascripts/controllers/reorder-categories-test.js.es6 similarity index 100% rename from test/javascripts/controllers/reorder-categories-test.js rename to test/javascripts/controllers/reorder-categories-test.js.es6 diff --git a/test/javascripts/controllers/topic-test.js b/test/javascripts/controllers/topic-test.js.es6 similarity index 100% rename from test/javascripts/controllers/topic-test.js rename to test/javascripts/controllers/topic-test.js.es6 diff --git a/test/javascripts/ember/resolver-test.js b/test/javascripts/ember/resolver-test.js.es6 similarity index 100% rename from test/javascripts/ember/resolver-test.js rename to test/javascripts/ember/resolver-test.js.es6 diff --git a/test/javascripts/fixtures/about.js b/test/javascripts/fixtures/about.js.es6 similarity index 100% rename from test/javascripts/fixtures/about.js rename to test/javascripts/fixtures/about.js.es6 diff --git a/test/javascripts/fixtures/badges_fixture.js b/test/javascripts/fixtures/badges_fixture.js.es6 similarity index 100% rename from test/javascripts/fixtures/badges_fixture.js rename to test/javascripts/fixtures/badges_fixture.js.es6 diff --git a/test/javascripts/fixtures/category-fixtures.js b/test/javascripts/fixtures/category-fixtures.js.es6 similarity index 100% rename from test/javascripts/fixtures/category-fixtures.js rename to test/javascripts/fixtures/category-fixtures.js.es6 diff --git a/test/javascripts/fixtures/concerns/notification-types.js.erb b/test/javascripts/fixtures/concerns/notification-types.js.es6.erb similarity index 100% rename from test/javascripts/fixtures/concerns/notification-types.js.erb rename to test/javascripts/fixtures/concerns/notification-types.js.es6.erb diff --git a/test/javascripts/fixtures/dashboard-general.js b/test/javascripts/fixtures/dashboard-general.js.es6 similarity index 100% rename from test/javascripts/fixtures/dashboard-general.js rename to test/javascripts/fixtures/dashboard-general.js.es6 diff --git a/test/javascripts/fixtures/dashboard.js b/test/javascripts/fixtures/dashboard.js.es6 similarity index 100% rename from test/javascripts/fixtures/dashboard.js rename to test/javascripts/fixtures/dashboard.js.es6 diff --git a/test/javascripts/fixtures/directory-fixtures.js b/test/javascripts/fixtures/directory-fixtures.js.es6 similarity index 100% rename from test/javascripts/fixtures/directory-fixtures.js rename to test/javascripts/fixtures/directory-fixtures.js.es6 diff --git a/test/javascripts/fixtures/discovery_fixtures.js b/test/javascripts/fixtures/discovery_fixtures.js.es6 similarity index 100% rename from test/javascripts/fixtures/discovery_fixtures.js rename to test/javascripts/fixtures/discovery_fixtures.js.es6 diff --git a/test/javascripts/fixtures/draft.js b/test/javascripts/fixtures/draft.js.es6 similarity index 100% rename from test/javascripts/fixtures/draft.js rename to test/javascripts/fixtures/draft.js.es6 diff --git a/test/javascripts/fixtures/drafts.js b/test/javascripts/fixtures/drafts.js.es6 similarity index 100% rename from test/javascripts/fixtures/drafts.js rename to test/javascripts/fixtures/drafts.js.es6 diff --git a/test/javascripts/fixtures/group-fixtures.js b/test/javascripts/fixtures/group-fixtures.js.es6 similarity index 100% rename from test/javascripts/fixtures/group-fixtures.js rename to test/javascripts/fixtures/group-fixtures.js.es6 diff --git a/test/javascripts/fixtures/groups-fixtures.js b/test/javascripts/fixtures/groups-fixtures.js.es6 similarity index 100% rename from test/javascripts/fixtures/groups-fixtures.js rename to test/javascripts/fixtures/groups-fixtures.js.es6 diff --git a/test/javascripts/fixtures/notification_fixtures.js b/test/javascripts/fixtures/notification_fixtures.js.es6 similarity index 100% rename from test/javascripts/fixtures/notification_fixtures.js rename to test/javascripts/fixtures/notification_fixtures.js.es6 diff --git a/test/javascripts/fixtures/poll.js b/test/javascripts/fixtures/poll.js.es6 similarity index 100% rename from test/javascripts/fixtures/poll.js rename to test/javascripts/fixtures/poll.js.es6 diff --git a/test/javascripts/fixtures/post.js b/test/javascripts/fixtures/post.js.es6 similarity index 100% rename from test/javascripts/fixtures/post.js rename to test/javascripts/fixtures/post.js.es6 diff --git a/test/javascripts/fixtures/private_messages_fixtures.js b/test/javascripts/fixtures/private_messages_fixtures.js.es6 similarity index 100% rename from test/javascripts/fixtures/private_messages_fixtures.js rename to test/javascripts/fixtures/private_messages_fixtures.js.es6 diff --git a/test/javascripts/fixtures/problems.js b/test/javascripts/fixtures/problems.js.es6 similarity index 100% rename from test/javascripts/fixtures/problems.js rename to test/javascripts/fixtures/problems.js.es6 diff --git a/test/javascripts/fixtures/reports.js b/test/javascripts/fixtures/reports.js.es6 similarity index 100% rename from test/javascripts/fixtures/reports.js rename to test/javascripts/fixtures/reports.js.es6 diff --git a/test/javascripts/fixtures/reports_bulk.js b/test/javascripts/fixtures/reports_bulk.js.es6 similarity index 100% rename from test/javascripts/fixtures/reports_bulk.js rename to test/javascripts/fixtures/reports_bulk.js.es6 diff --git a/test/javascripts/fixtures/search-fixtures.js b/test/javascripts/fixtures/search-fixtures.js.es6 similarity index 100% rename from test/javascripts/fixtures/search-fixtures.js rename to test/javascripts/fixtures/search-fixtures.js.es6 diff --git a/test/javascripts/fixtures/session-fixtures.js b/test/javascripts/fixtures/session-fixtures.js.es6 similarity index 100% rename from test/javascripts/fixtures/session-fixtures.js rename to test/javascripts/fixtures/session-fixtures.js.es6 diff --git a/test/javascripts/fixtures/site-fixtures.js b/test/javascripts/fixtures/site-fixtures.js.es6 similarity index 100% rename from test/javascripts/fixtures/site-fixtures.js rename to test/javascripts/fixtures/site-fixtures.js.es6 diff --git a/test/javascripts/fixtures/site_settings.js b/test/javascripts/fixtures/site_settings.js.es6 similarity index 100% rename from test/javascripts/fixtures/site_settings.js rename to test/javascripts/fixtures/site_settings.js.es6 diff --git a/test/javascripts/fixtures/static_fixtures.js b/test/javascripts/fixtures/static_fixtures.js.es6 similarity index 100% rename from test/javascripts/fixtures/static_fixtures.js rename to test/javascripts/fixtures/static_fixtures.js.es6 diff --git a/test/javascripts/fixtures/top_fixture.js b/test/javascripts/fixtures/top_fixture.js.es6 similarity index 100% rename from test/javascripts/fixtures/top_fixture.js rename to test/javascripts/fixtures/top_fixture.js.es6 diff --git a/test/javascripts/fixtures/topic.js b/test/javascripts/fixtures/topic.js.es6 similarity index 100% rename from test/javascripts/fixtures/topic.js rename to test/javascripts/fixtures/topic.js.es6 diff --git a/test/javascripts/fixtures/user-badges.js b/test/javascripts/fixtures/user-badges.js.es6 similarity index 100% rename from test/javascripts/fixtures/user-badges.js rename to test/javascripts/fixtures/user-badges.js.es6 diff --git a/test/javascripts/fixtures/user_fixtures.js b/test/javascripts/fixtures/user_fixtures.js.es6 similarity index 100% rename from test/javascripts/fixtures/user_fixtures.js rename to test/javascripts/fixtures/user_fixtures.js.es6 diff --git a/test/javascripts/fixtures/watched-words-fixtures.js b/test/javascripts/fixtures/watched-words-fixtures.js.es6 similarity index 100% rename from test/javascripts/fixtures/watched-words-fixtures.js rename to test/javascripts/fixtures/watched-words-fixtures.js.es6 diff --git a/test/javascripts/helpers/assertions.js b/test/javascripts/helpers/assertions.js index 81fbd40b1bc..95d7b2a7dd5 100644 --- a/test/javascripts/helpers/assertions.js +++ b/test/javascripts/helpers/assertions.js @@ -1,4 +1,5 @@ -// discourse-skip-module +/* exported exists, count, present, blank, containsInstance, not, visible, invisible */ + function exists(selector) { return count(selector) > 0; } @@ -12,10 +13,8 @@ function visible(selector) { } function invisible(selector) { - const $items = find(selector + ":visible"); - return ( - $items.length === 0 || - $items.css("opacity") === "0" || - $items.css("visibility") === "hidden" - ); + var $items = find(selector + ":visible"); + return $items.length === 0 || + $items.css("opacity") === "0" || + $items.css("visibility") === "hidden"; } diff --git a/test/javascripts/helpers/component-test.js b/test/javascripts/helpers/component-test.js.es6 similarity index 100% rename from test/javascripts/helpers/component-test.js rename to test/javascripts/helpers/component-test.js.es6 diff --git a/test/javascripts/helpers/create-pretender.js b/test/javascripts/helpers/create-pretender.js.es6 similarity index 100% rename from test/javascripts/helpers/create-pretender.js rename to test/javascripts/helpers/create-pretender.js.es6 diff --git a/test/javascripts/helpers/create-store.js b/test/javascripts/helpers/create-store.js.es6 similarity index 100% rename from test/javascripts/helpers/create-store.js rename to test/javascripts/helpers/create-store.js.es6 diff --git a/test/javascripts/helpers/d-editor-helper.js b/test/javascripts/helpers/d-editor-helper.js.es6 similarity index 100% rename from test/javascripts/helpers/d-editor-helper.js rename to test/javascripts/helpers/d-editor-helper.js.es6 diff --git a/test/javascripts/helpers/fixture-pretender.js b/test/javascripts/helpers/fixture-pretender.js.es6 similarity index 100% rename from test/javascripts/helpers/fixture-pretender.js rename to test/javascripts/helpers/fixture-pretender.js.es6 diff --git a/test/javascripts/helpers/html-helper.js b/test/javascripts/helpers/html-helper.js.es6 similarity index 100% rename from test/javascripts/helpers/html-helper.js rename to test/javascripts/helpers/html-helper.js.es6 diff --git a/test/javascripts/helpers/init-ember-qunit.js b/test/javascripts/helpers/init-ember-qunit.js new file mode 100644 index 00000000000..32d0184e7d9 --- /dev/null +++ b/test/javascripts/helpers/init-ember-qunit.js @@ -0,0 +1,2 @@ +var buildResolver = require('discourse-common/resolver').buildResolver; +window.setResolver(buildResolver('discourse').create({ namespace: Discourse })); diff --git a/test/javascripts/helpers/qunit-helpers.js b/test/javascripts/helpers/qunit-helpers.js.es6 similarity index 100% rename from test/javascripts/helpers/qunit-helpers.js rename to test/javascripts/helpers/qunit-helpers.js.es6 diff --git a/test/javascripts/helpers/review-pretender.js b/test/javascripts/helpers/review-pretender.js.es6 similarity index 100% rename from test/javascripts/helpers/review-pretender.js rename to test/javascripts/helpers/review-pretender.js.es6 diff --git a/test/javascripts/helpers/select-kit-helper.js b/test/javascripts/helpers/select-kit-helper.js.es6 similarity index 100% rename from test/javascripts/helpers/select-kit-helper.js rename to test/javascripts/helpers/select-kit-helper.js.es6 diff --git a/test/javascripts/helpers/site-settings.js b/test/javascripts/helpers/site-settings.js index c39424b0dfc..621aa3d6acc 100644 --- a/test/javascripts/helpers/site-settings.js +++ b/test/javascripts/helpers/site-settings.js @@ -1,5 +1,4 @@ -// discourse-skip-module - +/*jshint maxlen:10000000 */ Discourse.SiteSettingsOriginal = { title: "QUnit Discourse Tests", site_logo_url: "/assets/logo.png", @@ -13,10 +12,8 @@ Discourse.SiteSettingsOriginal = { ga_universal_tracking_code: "", ga_universal_domain_name: "auto", top_menu: "latest|new|unread|categories|top", - post_menu: - "like|share|flag|edit|bookmark|bookmarkWithReminder|delete|admin|reply", - post_menu_hidden_items: - "flag|bookmark|bookmarkWithReminder|edit|delete|admin", + post_menu: "like|share|flag|edit|bookmark|bookmarkWithReminder|delete|admin|reply", + post_menu_hidden_items: "flag|bookmark|bookmarkWithReminder|edit|delete|admin", share_links: "twitter|facebook|email", category_colors: "BF1E2E|F1592A|F7941D|9EB83B|3AB54A|12A89D|25AAE2|0E76BD|652D90|92278F|ED207B|8C6238|231F20|27AA5B|B3B5B4|E45735", @@ -105,7 +102,6 @@ Discourse.SiteSettingsOriginal = { unicode_usernames: false, secure_media: false }; - Discourse.SiteSettings = jQuery.extend( true, {}, diff --git a/test/javascripts/helpers/site.js b/test/javascripts/helpers/site.js.es6 similarity index 100% rename from test/javascripts/helpers/site.js rename to test/javascripts/helpers/site.js.es6 diff --git a/test/javascripts/helpers/store-pretender.js b/test/javascripts/helpers/store-pretender.js.es6 similarity index 100% rename from test/javascripts/helpers/store-pretender.js rename to test/javascripts/helpers/store-pretender.js.es6 diff --git a/test/javascripts/helpers/textarea-selection-helper.js b/test/javascripts/helpers/textarea-selection-helper.js.es6 similarity index 100% rename from test/javascripts/helpers/textarea-selection-helper.js rename to test/javascripts/helpers/textarea-selection-helper.js.es6 diff --git a/test/javascripts/helpers/widget-test.js b/test/javascripts/helpers/widget-test.js.es6 similarity index 100% rename from test/javascripts/helpers/widget-test.js rename to test/javascripts/helpers/widget-test.js.es6 diff --git a/test/javascripts/initializers/localization-test.js b/test/javascripts/initializers/localization-test.js.es6 similarity index 100% rename from test/javascripts/initializers/localization-test.js rename to test/javascripts/initializers/localization-test.js.es6 diff --git a/test/javascripts/lib/bbcode-test.js b/test/javascripts/lib/bbcode-test.js.es6 similarity index 100% rename from test/javascripts/lib/bbcode-test.js rename to test/javascripts/lib/bbcode-test.js.es6 diff --git a/test/javascripts/lib/break-string-test.js b/test/javascripts/lib/break-string-test.js.es6 similarity index 100% rename from test/javascripts/lib/break-string-test.js rename to test/javascripts/lib/break-string-test.js.es6 diff --git a/test/javascripts/lib/category-badge-test.js b/test/javascripts/lib/category-badge-test.js.es6 similarity index 100% rename from test/javascripts/lib/category-badge-test.js rename to test/javascripts/lib/category-badge-test.js.es6 diff --git a/test/javascripts/lib/click-track-edit-history-test.js b/test/javascripts/lib/click-track-edit-history-test.js.es6 similarity index 100% rename from test/javascripts/lib/click-track-edit-history-test.js rename to test/javascripts/lib/click-track-edit-history-test.js.es6 diff --git a/test/javascripts/lib/click-track-profile-page-test.js b/test/javascripts/lib/click-track-profile-page-test.js.es6 similarity index 100% rename from test/javascripts/lib/click-track-profile-page-test.js rename to test/javascripts/lib/click-track-profile-page-test.js.es6 diff --git a/test/javascripts/lib/click-track-test.js b/test/javascripts/lib/click-track-test.js.es6 similarity index 100% rename from test/javascripts/lib/click-track-test.js rename to test/javascripts/lib/click-track-test.js.es6 diff --git a/test/javascripts/lib/computed-test.js b/test/javascripts/lib/computed-test.js.es6 similarity index 100% rename from test/javascripts/lib/computed-test.js rename to test/javascripts/lib/computed-test.js.es6 diff --git a/test/javascripts/lib/discourse-test.js b/test/javascripts/lib/discourse-test.js.es6 similarity index 100% rename from test/javascripts/lib/discourse-test.js rename to test/javascripts/lib/discourse-test.js.es6 diff --git a/test/javascripts/lib/emoji-store-test.js b/test/javascripts/lib/emoji-store-test.js.es6 similarity index 100% rename from test/javascripts/lib/emoji-store-test.js rename to test/javascripts/lib/emoji-store-test.js.es6 diff --git a/test/javascripts/lib/emoji-test.js b/test/javascripts/lib/emoji-test.js.es6 similarity index 100% rename from test/javascripts/lib/emoji-test.js rename to test/javascripts/lib/emoji-test.js.es6 diff --git a/test/javascripts/lib/formatter-test.js b/test/javascripts/lib/formatter-test.js.es6 similarity index 100% rename from test/javascripts/lib/formatter-test.js rename to test/javascripts/lib/formatter-test.js.es6 diff --git a/test/javascripts/lib/highlight-text-test.js b/test/javascripts/lib/highlight-text-test.js.es6 similarity index 100% rename from test/javascripts/lib/highlight-text-test.js rename to test/javascripts/lib/highlight-text-test.js.es6 diff --git a/test/javascripts/lib/i18n-test.js b/test/javascripts/lib/i18n-test.js.es6 similarity index 100% rename from test/javascripts/lib/i18n-test.js rename to test/javascripts/lib/i18n-test.js.es6 diff --git a/test/javascripts/lib/icon-library-test.js b/test/javascripts/lib/icon-library-test.js.es6 similarity index 100% rename from test/javascripts/lib/icon-library-test.js rename to test/javascripts/lib/icon-library-test.js.es6 diff --git a/test/javascripts/lib/key-value-store-test.js b/test/javascripts/lib/key-value-store-test.js.es6 similarity index 100% rename from test/javascripts/lib/key-value-store-test.js rename to test/javascripts/lib/key-value-store-test.js.es6 diff --git a/test/javascripts/lib/link-mentions-test.js b/test/javascripts/lib/link-mentions-test.js.es6 similarity index 100% rename from test/javascripts/lib/link-mentions-test.js rename to test/javascripts/lib/link-mentions-test.js.es6 diff --git a/test/javascripts/lib/load-script-test.js b/test/javascripts/lib/load-script-test.js.es6 similarity index 100% rename from test/javascripts/lib/load-script-test.js rename to test/javascripts/lib/load-script-test.js.es6 diff --git a/test/javascripts/lib/oneboxer-test.js b/test/javascripts/lib/oneboxer-test.js.es6 similarity index 100% rename from test/javascripts/lib/oneboxer-test.js rename to test/javascripts/lib/oneboxer-test.js.es6 diff --git a/test/javascripts/lib/preload-store-test.js b/test/javascripts/lib/preload-store-test.js.es6 similarity index 100% rename from test/javascripts/lib/preload-store-test.js rename to test/javascripts/lib/preload-store-test.js.es6 diff --git a/test/javascripts/lib/pretty-text-test.js b/test/javascripts/lib/pretty-text-test.js.es6 similarity index 100% rename from test/javascripts/lib/pretty-text-test.js rename to test/javascripts/lib/pretty-text-test.js.es6 diff --git a/test/javascripts/lib/sanitizer-test.js b/test/javascripts/lib/sanitizer-test.js.es6 similarity index 100% rename from test/javascripts/lib/sanitizer-test.js rename to test/javascripts/lib/sanitizer-test.js.es6 diff --git a/test/javascripts/lib/screen-track-test.js b/test/javascripts/lib/screen-track-test.js.es6 similarity index 100% rename from test/javascripts/lib/screen-track-test.js rename to test/javascripts/lib/screen-track-test.js.es6 diff --git a/test/javascripts/lib/search-test.js b/test/javascripts/lib/search-test.js.es6 similarity index 100% rename from test/javascripts/lib/search-test.js rename to test/javascripts/lib/search-test.js.es6 diff --git a/test/javascripts/lib/sharing-test.js b/test/javascripts/lib/sharing-test.js.es6 similarity index 100% rename from test/javascripts/lib/sharing-test.js rename to test/javascripts/lib/sharing-test.js.es6 diff --git a/test/javascripts/lib/text-direction-test.js b/test/javascripts/lib/text-direction-test.js.es6 similarity index 100% rename from test/javascripts/lib/text-direction-test.js rename to test/javascripts/lib/text-direction-test.js.es6 diff --git a/test/javascripts/lib/to-markdown-test.js b/test/javascripts/lib/to-markdown-test.js.es6 similarity index 100% rename from test/javascripts/lib/to-markdown-test.js rename to test/javascripts/lib/to-markdown-test.js.es6 diff --git a/test/javascripts/lib/tooltip-test.js b/test/javascripts/lib/tooltip-test.js.es6 similarity index 100% rename from test/javascripts/lib/tooltip-test.js rename to test/javascripts/lib/tooltip-test.js.es6 diff --git a/test/javascripts/lib/upload-short-url-test.js b/test/javascripts/lib/upload-short-url-test.js.es6 similarity index 100% rename from test/javascripts/lib/upload-short-url-test.js rename to test/javascripts/lib/upload-short-url-test.js.es6 diff --git a/test/javascripts/lib/uploads-test.js b/test/javascripts/lib/uploads-test.js.es6 similarity index 100% rename from test/javascripts/lib/uploads-test.js rename to test/javascripts/lib/uploads-test.js.es6 diff --git a/test/javascripts/lib/url-test.js b/test/javascripts/lib/url-test.js.es6 similarity index 100% rename from test/javascripts/lib/url-test.js rename to test/javascripts/lib/url-test.js.es6 diff --git a/test/javascripts/lib/user-search-test.js b/test/javascripts/lib/user-search-test.js.es6 similarity index 100% rename from test/javascripts/lib/user-search-test.js rename to test/javascripts/lib/user-search-test.js.es6 diff --git a/test/javascripts/lib/utilities-test.js b/test/javascripts/lib/utilities-test.js.es6 similarity index 100% rename from test/javascripts/lib/utilities-test.js rename to test/javascripts/lib/utilities-test.js.es6 diff --git a/test/javascripts/lib/white-lister-test.js b/test/javascripts/lib/white-lister-test.js.es6 similarity index 100% rename from test/javascripts/lib/white-lister-test.js rename to test/javascripts/lib/white-lister-test.js.es6 diff --git a/test/javascripts/mixins/grant-badge-controller-test.js b/test/javascripts/mixins/grant-badge-controller-test.js.es6 similarity index 100% rename from test/javascripts/mixins/grant-badge-controller-test.js rename to test/javascripts/mixins/grant-badge-controller-test.js.es6 diff --git a/test/javascripts/mixins/setting-object-test.js b/test/javascripts/mixins/setting-object-test.js.es6 similarity index 100% rename from test/javascripts/mixins/setting-object-test.js rename to test/javascripts/mixins/setting-object-test.js.es6 diff --git a/test/javascripts/mixins/singleton-test.js b/test/javascripts/mixins/singleton-test.js.es6 similarity index 100% rename from test/javascripts/mixins/singleton-test.js rename to test/javascripts/mixins/singleton-test.js.es6 diff --git a/test/javascripts/models/badge-test.js b/test/javascripts/models/badge-test.js.es6 similarity index 100% rename from test/javascripts/models/badge-test.js rename to test/javascripts/models/badge-test.js.es6 diff --git a/test/javascripts/models/category-test.js b/test/javascripts/models/category-test.js.es6 similarity index 100% rename from test/javascripts/models/category-test.js rename to test/javascripts/models/category-test.js.es6 diff --git a/test/javascripts/models/composer-test.js b/test/javascripts/models/composer-test.js.es6 similarity index 100% rename from test/javascripts/models/composer-test.js rename to test/javascripts/models/composer-test.js.es6 diff --git a/test/javascripts/models/email-log-test.js b/test/javascripts/models/email-log-test.js.es6 similarity index 100% rename from test/javascripts/models/email-log-test.js rename to test/javascripts/models/email-log-test.js.es6 diff --git a/test/javascripts/models/group-test.js b/test/javascripts/models/group-test.js.es6 similarity index 100% rename from test/javascripts/models/group-test.js rename to test/javascripts/models/group-test.js.es6 diff --git a/test/javascripts/models/invite-test.js b/test/javascripts/models/invite-test.js.es6 similarity index 100% rename from test/javascripts/models/invite-test.js rename to test/javascripts/models/invite-test.js.es6 diff --git a/test/javascripts/models/nav-item-test.js b/test/javascripts/models/nav-item-test.js.es6 similarity index 100% rename from test/javascripts/models/nav-item-test.js rename to test/javascripts/models/nav-item-test.js.es6 diff --git a/test/javascripts/models/post-stream-test.js b/test/javascripts/models/post-stream-test.js.es6 similarity index 100% rename from test/javascripts/models/post-stream-test.js rename to test/javascripts/models/post-stream-test.js.es6 diff --git a/test/javascripts/models/post-test.js b/test/javascripts/models/post-test.js.es6 similarity index 100% rename from test/javascripts/models/post-test.js rename to test/javascripts/models/post-test.js.es6 diff --git a/test/javascripts/models/report-test.js b/test/javascripts/models/report-test.js.es6 similarity index 100% rename from test/javascripts/models/report-test.js rename to test/javascripts/models/report-test.js.es6 diff --git a/test/javascripts/models/rest-model-test.js b/test/javascripts/models/rest-model-test.js.es6 similarity index 100% rename from test/javascripts/models/rest-model-test.js rename to test/javascripts/models/rest-model-test.js.es6 diff --git a/test/javascripts/models/result-set-test.js b/test/javascripts/models/result-set-test.js.es6 similarity index 100% rename from test/javascripts/models/result-set-test.js rename to test/javascripts/models/result-set-test.js.es6 diff --git a/test/javascripts/models/session-test.js b/test/javascripts/models/session-test.js.es6 similarity index 100% rename from test/javascripts/models/session-test.js rename to test/javascripts/models/session-test.js.es6 diff --git a/test/javascripts/models/site-test.js b/test/javascripts/models/site-test.js.es6 similarity index 100% rename from test/javascripts/models/site-test.js rename to test/javascripts/models/site-test.js.es6 diff --git a/test/javascripts/models/staff-action-log-test.js b/test/javascripts/models/staff-action-log-test.js.es6 similarity index 100% rename from test/javascripts/models/staff-action-log-test.js rename to test/javascripts/models/staff-action-log-test.js.es6 diff --git a/test/javascripts/models/store-test.js b/test/javascripts/models/store-test.js.es6 similarity index 100% rename from test/javascripts/models/store-test.js rename to test/javascripts/models/store-test.js.es6 diff --git a/test/javascripts/models/topic-details-test.js b/test/javascripts/models/topic-details-test.js.es6 similarity index 100% rename from test/javascripts/models/topic-details-test.js rename to test/javascripts/models/topic-details-test.js.es6 diff --git a/test/javascripts/models/topic-test.js b/test/javascripts/models/topic-test.js.es6 similarity index 100% rename from test/javascripts/models/topic-test.js rename to test/javascripts/models/topic-test.js.es6 diff --git a/test/javascripts/models/topic-tracking-state-test.js b/test/javascripts/models/topic-tracking-state-test.js.es6 similarity index 100% rename from test/javascripts/models/topic-tracking-state-test.js rename to test/javascripts/models/topic-tracking-state-test.js.es6 diff --git a/test/javascripts/models/user-action-test.js b/test/javascripts/models/user-action-test.js.es6 similarity index 100% rename from test/javascripts/models/user-action-test.js rename to test/javascripts/models/user-action-test.js.es6 diff --git a/test/javascripts/models/user-badge-test.js b/test/javascripts/models/user-badge-test.js.es6 similarity index 100% rename from test/javascripts/models/user-badge-test.js rename to test/javascripts/models/user-badge-test.js.es6 diff --git a/test/javascripts/models/user-drafts-test.js b/test/javascripts/models/user-drafts-test.js.es6 similarity index 100% rename from test/javascripts/models/user-drafts-test.js rename to test/javascripts/models/user-drafts-test.js.es6 diff --git a/test/javascripts/models/user-stream-test.js b/test/javascripts/models/user-stream-test.js.es6 similarity index 100% rename from test/javascripts/models/user-stream-test.js rename to test/javascripts/models/user-stream-test.js.es6 diff --git a/test/javascripts/models/user-test.js b/test/javascripts/models/user-test.js.es6 similarity index 100% rename from test/javascripts/models/user-test.js rename to test/javascripts/models/user-test.js.es6 diff --git a/test/javascripts/utils/decorators-test.js b/test/javascripts/utils/decorators-test.js.es6 similarity index 100% rename from test/javascripts/utils/decorators-test.js rename to test/javascripts/utils/decorators-test.js.es6 diff --git a/test/javascripts/widgets/actions-summary-test.js b/test/javascripts/widgets/actions-summary-test.js.es6 similarity index 100% rename from test/javascripts/widgets/actions-summary-test.js rename to test/javascripts/widgets/actions-summary-test.js.es6 diff --git a/test/javascripts/widgets/avatar-flair-test.js b/test/javascripts/widgets/avatar-flair-test.js.es6 similarity index 100% rename from test/javascripts/widgets/avatar-flair-test.js rename to test/javascripts/widgets/avatar-flair-test.js.es6 diff --git a/test/javascripts/widgets/button-test.js b/test/javascripts/widgets/button-test.js.es6 similarity index 100% rename from test/javascripts/widgets/button-test.js rename to test/javascripts/widgets/button-test.js.es6 diff --git a/test/javascripts/widgets/default-notification-item-test.js b/test/javascripts/widgets/default-notification-item-test.js.es6 similarity index 100% rename from test/javascripts/widgets/default-notification-item-test.js rename to test/javascripts/widgets/default-notification-item-test.js.es6 diff --git a/test/javascripts/widgets/hamburger-menu-test.js b/test/javascripts/widgets/hamburger-menu-test.js.es6 similarity index 100% rename from test/javascripts/widgets/hamburger-menu-test.js rename to test/javascripts/widgets/hamburger-menu-test.js.es6 diff --git a/test/javascripts/widgets/header-test.js b/test/javascripts/widgets/header-test.js.es6 similarity index 100% rename from test/javascripts/widgets/header-test.js rename to test/javascripts/widgets/header-test.js.es6 diff --git a/test/javascripts/widgets/home-logo-test.js b/test/javascripts/widgets/home-logo-test.js.es6 similarity index 100% rename from test/javascripts/widgets/home-logo-test.js rename to test/javascripts/widgets/home-logo-test.js.es6 diff --git a/test/javascripts/widgets/post-links-test.js b/test/javascripts/widgets/post-links-test.js.es6 similarity index 100% rename from test/javascripts/widgets/post-links-test.js rename to test/javascripts/widgets/post-links-test.js.es6 diff --git a/test/javascripts/widgets/post-stream-test.js b/test/javascripts/widgets/post-stream-test.js.es6 similarity index 100% rename from test/javascripts/widgets/post-stream-test.js rename to test/javascripts/widgets/post-stream-test.js.es6 diff --git a/test/javascripts/widgets/post-test.js b/test/javascripts/widgets/post-test.js.es6 similarity index 100% rename from test/javascripts/widgets/post-test.js rename to test/javascripts/widgets/post-test.js.es6 diff --git a/test/javascripts/widgets/poster-name-test.js b/test/javascripts/widgets/poster-name-test.js.es6 similarity index 100% rename from test/javascripts/widgets/poster-name-test.js rename to test/javascripts/widgets/poster-name-test.js.es6 diff --git a/test/javascripts/widgets/quick-access-item-test.js b/test/javascripts/widgets/quick-access-item-test.js.es6 similarity index 100% rename from test/javascripts/widgets/quick-access-item-test.js rename to test/javascripts/widgets/quick-access-item-test.js.es6 diff --git a/test/javascripts/widgets/topic-admin-menu-test.js b/test/javascripts/widgets/topic-admin-menu-test.js.es6 similarity index 100% rename from test/javascripts/widgets/topic-admin-menu-test.js rename to test/javascripts/widgets/topic-admin-menu-test.js.es6 diff --git a/test/javascripts/widgets/topic-participant-test.js b/test/javascripts/widgets/topic-participant-test.js.es6 similarity index 100% rename from test/javascripts/widgets/topic-participant-test.js rename to test/javascripts/widgets/topic-participant-test.js.es6 diff --git a/test/javascripts/widgets/topic-status-test.js b/test/javascripts/widgets/topic-status-test.js.es6 similarity index 100% rename from test/javascripts/widgets/topic-status-test.js rename to test/javascripts/widgets/topic-status-test.js.es6 diff --git a/test/javascripts/widgets/user-menu-test.js b/test/javascripts/widgets/user-menu-test.js.es6 similarity index 100% rename from test/javascripts/widgets/user-menu-test.js rename to test/javascripts/widgets/user-menu-test.js.es6 diff --git a/test/javascripts/widgets/widget-test.js b/test/javascripts/widgets/widget-test.js.es6 similarity index 100% rename from test/javascripts/widgets/widget-test.js rename to test/javascripts/widgets/widget-test.js.es6