A platform for community discussion. Free, open, simple.
REFACTOR: Move qunit tests to a different directory structure
Robin Ward445d6ba45fe9
diff --git a/test/javascripts/admin/components/group-list-setting-test.js b/test/javascripts/admin/integration/components/group-list-setting-test.jssimilarity index 100%rename from test/javascripts/admin/components/group-list-setting-test.jsrename to test/javascripts/admin/integration/components/group-list-setting-test.jsdiff --git a/test/javascripts/admin/components/themes-list-item-test.js b/test/javascripts/admin/integration/components/themes-list-item-test.jssimilarity index 100%rename from test/javascripts/admin/components/themes-list-item-test.jsrename to test/javascripts/admin/integration/components/themes-list-item-test.jsdiff --git a/test/javascripts/admin/components/themes-list-test.js b/test/javascripts/admin/integration/components/themes-list-test.jssimilarity index 100%rename from test/javascripts/admin/components/themes-list-test.jsrename to test/javascripts/admin/integration/components/themes-list-test.jsdiff --git a/test/javascripts/admin/controllers/admin-customize-themes-show-test.js b/test/javascripts/admin/unit/controllers/admin-customize-themes-show-test.jssimilarity index 100%rename from test/javascripts/admin/controllers/admin-customize-themes-show-test.jsrename to test/javascripts/admin/unit/controllers/admin-customize-themes-show-test.jsdiff --git a/test/javascripts/admin/controllers/admin-customize-themes-test.js b/test/javascripts/admin/unit/controllers/admin-customize-themes-test.jssimilarity index 100%rename from test/javascripts/admin/controllers/admin-customize-themes-test.jsrename to test/javascripts/admin/unit/controllers/admin-customize-themes-test.jsdiff --git a/test/javascripts/admin/controllers/admin-user-badges-test.js b/test/javascripts/admin/unit/controllers/admin-user-badges-test.jssimilarity index 100%rename from test/javascripts/admin/controllers/admin-user-badges-test.jsrename to test/javascripts/admin/unit/controllers/admin-user-badges-test.jsdiff --git a/test/javascripts/admin/models/theme-test.js b/test/javascripts/admin/unit/models/theme-test.jssimilarity index 100%rename from test/javascripts/admin/models/theme-test.jsrename to test/javascripts/admin/unit/models/theme-test.jsdiff --git a/test/javascripts/components/ace-editor-test.js b/test/javascripts/integration/components/ace-editor-test.jssimilarity index 100%rename from test/javascripts/components/ace-editor-test.jsrename to test/javascripts/integration/components/ace-editor-test.jsdiff --git a/test/javascripts/components/admin-report-test.js b/test/javascripts/integration/components/admin-report-test.jssimilarity index 100%rename from test/javascripts/components/admin-report-test.jsrename to test/javascripts/integration/components/admin-report-test.jsdiff --git a/test/javascripts/components/badge-title-test.js b/test/javascripts/integration/components/badge-title-test.jssimilarity index 100%rename from test/javascripts/components/badge-title-test.jsrename to test/javascripts/integration/components/badge-title-test.jsdiff --git a/test/javascripts/components/cook-text-test.js b/test/javascripts/integration/components/cook-text-test.jssimilarity index 100%rename from test/javascripts/components/cook-text-test.jsrename to test/javascripts/integration/components/cook-text-test.jsdiff --git a/test/javascripts/components/d-button-test.js b/test/javascripts/integration/components/d-button-test.jssimilarity index 100%rename from test/javascripts/components/d-button-test.jsrename to test/javascripts/integration/components/d-button-test.jsdiff --git a/test/javascripts/components/d-editor-test.js b/test/javascripts/integration/components/d-editor-test.jssimilarity index 100%rename from test/javascripts/components/d-editor-test.jsrename to test/javascripts/integration/components/d-editor-test.jsdiff --git a/test/javascripts/components/d-icon-test.js b/test/javascripts/integration/components/d-icon-test.jssimilarity index 100%rename from test/javascripts/components/d-icon-test.jsrename to test/javascripts/integration/components/d-icon-test.jsdiff --git a/test/javascripts/components/date-input-test.js b/test/javascripts/integration/components/date-input-test.jssimilarity index 100%rename from test/javascripts/components/date-input-test.jsrename to test/javascripts/integration/components/date-input-test.jsdiff --git a/test/javascripts/components/date-time-input-range-test.js b/test/javascripts/integration/components/date-time-input-range-test.jssimilarity index 100%rename from test/javascripts/components/date-time-input-range-test.jsrename to test/javascripts/integration/components/date-time-input-range-test.jsdiff --git a/test/javascripts/components/date-time-input-test.js b/test/javascripts/integration/components/date-time-input-test.jssimilarity index 100%rename from test/javascripts/components/date-time-input-test.jsrename to test/javascripts/integration/components/date-time-input-test.jsdiff --git a/test/javascripts/components/group-membership-button-test.js b/test/javascripts/integration/components/group-membership-button-test.jssimilarity index 100%rename from test/javascripts/components/group-membership-button-test.jsrename to test/javascripts/integration/components/group-membership-button-test.jsdiff --git a/test/javascripts/components/highlighted-code-test.js b/test/javascripts/integration/components/highlighted-code-test.jssimilarity index 100%rename from test/javascripts/components/highlighted-code-test.jsrename to test/javascripts/integration/components/highlighted-code-test.jsdiff --git a/test/javascripts/components/html-safe-helper-test.js b/test/javascripts/integration/components/html-safe-helper-test.jssimilarity index 100%rename from test/javascripts/components/html-safe-helper-test.jsrename to test/javascripts/integration/components/html-safe-helper-test.jsdiff --git a/test/javascripts/components/iframed-html-test.js b/test/javascripts/integration/components/iframed-html-test.jssimilarity index 100%rename from test/javascripts/components/iframed-html-test.jsrename to test/javascripts/integration/components/iframed-html-test.jsdiff --git a/test/javascripts/components/image-uploader-test.js b/test/javascripts/integration/components/image-uploader-test.jssimilarity index 100%rename from test/javascripts/components/image-uploader-test.jsrename to test/javascripts/integration/components/image-uploader-test.jsdiff --git a/test/javascripts/components/keyboard-shortcuts-test.js b/test/javascripts/integration/components/keyboard-shortcuts-test.jssimilarity index 100%rename from test/javascripts/components/keyboard-shortcuts-test.jsrename to test/javascripts/integration/components/keyboard-shortcuts-test.jsdiff --git a/test/javascripts/components/load-more-test.js b/test/javascripts/integration/components/load-more-test.jssimilarity index 100%rename from test/javascripts/components/load-more-test.jsrename to test/javascripts/integration/components/load-more-test.jsdiff --git a/test/javascripts/components/secret-value-list-test.js b/test/javascripts/integration/components/secret-value-list-test.jssimilarity index 100%rename from test/javascripts/components/secret-value-list-test.jsrename to test/javascripts/integration/components/secret-value-list-test.jsdiff --git a/test/javascripts/components/select-kit/api-test.js b/test/javascripts/integration/components/select-kit/api-test.jssimilarity index 100%rename from test/javascripts/components/select-kit/api-test.jsrename to test/javascripts/integration/components/select-kit/api-test.jsdiff --git a/test/javascripts/components/select-kit/category-chooser-test.js b/test/javascripts/integration/components/select-kit/category-chooser-test.jssimilarity index 100%rename from test/javascripts/components/select-kit/category-chooser-test.jsrename to test/javascripts/integration/components/select-kit/category-chooser-test.jsdiff --git a/test/javascripts/components/select-kit/category-drop-test.js b/test/javascripts/integration/components/select-kit/category-drop-test.jssimilarity index 100%rename from test/javascripts/components/select-kit/category-drop-test.jsrename to test/javascripts/integration/components/select-kit/category-drop-test.jsdiff --git a/test/javascripts/components/select-kit/combo-box-test.js b/test/javascripts/integration/components/select-kit/combo-box-test.jssimilarity index 100%rename from test/javascripts/components/select-kit/combo-box-test.jsrename to test/javascripts/integration/components/select-kit/combo-box-test.jsdiff --git a/test/javascripts/components/select-kit/dropdown-select-box-test.js b/test/javascripts/integration/components/select-kit/dropdown-select-box-test.jssimilarity index 100%rename from test/javascripts/components/select-kit/dropdown-select-box-test.jsrename to test/javascripts/integration/components/select-kit/dropdown-select-box-test.jsdiff --git a/test/javascripts/components/select-kit/list-setting-test.js b/test/javascripts/integration/components/select-kit/list-setting-test.jssimilarity index 100%rename from test/javascripts/components/select-kit/list-setting-test.jsrename to test/javascripts/integration/components/select-kit/list-setting-test.jsdiff --git a/test/javascripts/components/select-kit/mini-tag-chooser-test.js b/test/javascripts/integration/components/select-kit/mini-tag-chooser-test.jssimilarity index 100%rename from test/javascripts/components/select-kit/mini-tag-chooser-test.jsrename to test/javascripts/integration/components/select-kit/mini-tag-chooser-test.jsdiff --git a/test/javascripts/components/select-kit/multi-select-test.js b/test/javascripts/integration/components/select-kit/multi-select-test.jssimilarity index 100%rename from test/javascripts/components/select-kit/multi-select-test.jsrename to test/javascripts/integration/components/select-kit/multi-select-test.jsdiff --git a/test/javascripts/components/select-kit/notifications-button-test.js b/test/javascripts/integration/components/select-kit/notifications-button-test.jssimilarity index 100%rename from test/javascripts/components/select-kit/notifications-button-test.jsrename to test/javascripts/integration/components/select-kit/notifications-button-test.jsdiff --git a/test/javascripts/components/select-kit/pinned-options-test.js b/test/javascripts/integration/components/select-kit/pinned-options-test.jssimilarity index 100%rename from test/javascripts/components/select-kit/pinned-options-test.jsrename to test/javascripts/integration/components/select-kit/pinned-options-test.jsdiff --git a/test/javascripts/components/select-kit/single-select-test.js b/test/javascripts/integration/components/select-kit/single-select-test.jssimilarity index 100%rename from test/javascripts/components/select-kit/single-select-test.jsrename to test/javascripts/integration/components/select-kit/single-select-test.jsdiff --git a/test/javascripts/components/select-kit/tag-drop-test.js b/test/javascripts/integration/components/select-kit/tag-drop-test.jssimilarity index 100%rename from test/javascripts/components/select-kit/tag-drop-test.jsrename to test/javascripts/integration/components/select-kit/tag-drop-test.jsdiff --git a/test/javascripts/components/select-kit/topic-notifications-button-test.js b/test/javascripts/integration/components/select-kit/topic-notifications-button-test.jssimilarity index 100%rename from test/javascripts/components/select-kit/topic-notifications-button-test.jsrename to test/javascripts/integration/components/select-kit/topic-notifications-button-test.jsdiff --git a/test/javascripts/components/select-kit/topic-notifications-options-test.js b/test/javascripts/integration/components/select-kit/topic-notifications-options-test.jssimilarity index 100%rename from test/javascripts/components/select-kit/topic-notifications-options-test.jsrename to test/javascripts/integration/components/select-kit/topic-notifications-options-test.jsdiff --git a/test/javascripts/components/select-kit/user-chooser-test.js b/test/javascripts/integration/components/select-kit/user-chooser-test.jssimilarity index 100%rename from test/javascripts/components/select-kit/user-chooser-test.jsrename to test/javascripts/integration/components/select-kit/user-chooser-test.jsdiff --git a/test/javascripts/components/share-button-test.js b/test/javascripts/integration/components/share-button-test.jssimilarity index 100%rename from test/javascripts/components/share-button-test.jsrename to test/javascripts/integration/components/share-button-test.jsdiff --git a/test/javascripts/components/share-button.js b/test/javascripts/integration/components/share-button.jssimilarity index 100%rename from test/javascripts/components/share-button.jsrename to test/javascripts/integration/components/share-button.jsdiff --git a/test/javascripts/components/simple-list-test.js b/test/javascripts/integration/components/simple-list-test.jssimilarity index 100%rename from test/javascripts/components/simple-list-test.jsrename to test/javascripts/integration/components/simple-list-test.jsdiff --git a/test/javascripts/components/text-field-test.js b/test/javascripts/integration/components/text-field-test.jssimilarity index 100%rename from test/javascripts/components/text-field-test.jsrename to test/javascripts/integration/components/text-field-test.jsdiff --git a/test/javascripts/components/time-input-test.js b/test/javascripts/integration/components/time-input-test.jssimilarity index 100%rename from test/javascripts/components/time-input-test.jsrename to test/javascripts/integration/components/time-input-test.jsdiff --git a/test/javascripts/components/user-selector-test.js b/test/javascripts/integration/components/user-selector-test.jssimilarity index 100%rename from test/javascripts/components/user-selector-test.jsrename to test/javascripts/integration/components/user-selector-test.jsdiff --git a/test/javascripts/components/value-list-test.js b/test/javascripts/integration/components/value-list-test.jssimilarity index 100%rename from test/javascripts/components/value-list-test.jsrename to test/javascripts/integration/components/value-list-test.jsdiff --git a/test/javascripts/widgets/actions-summary-test.js b/test/javascripts/integration/widgets/actions-summary-test.jssimilarity index 100%rename from test/javascripts/widgets/actions-summary-test.jsrename to test/javascripts/integration/widgets/actions-summary-test.jsdiff --git a/test/javascripts/widgets/avatar-flair-test.js b/test/javascripts/integration/widgets/avatar-flair-test.jssimilarity index 100%rename from test/javascripts/widgets/avatar-flair-test.jsrename to test/javascripts/integration/widgets/avatar-flair-test.jsdiff --git a/test/javascripts/widgets/button-test.js b/test/javascripts/integration/widgets/button-test.jssimilarity index 100%rename from test/javascripts/widgets/button-test.jsrename to test/javascripts/integration/widgets/button-test.jsdiff --git a/test/javascripts/widgets/default-notification-item-test.js b/test/javascripts/integration/widgets/default-notification-item-test.jssimilarity index 100%rename from test/javascripts/widgets/default-notification-item-test.jsrename to test/javascripts/integration/widgets/default-notification-item-test.jsdiff --git a/test/javascripts/widgets/hamburger-menu-test.js b/test/javascripts/integration/widgets/hamburger-menu-test.jssimilarity index 100%rename from test/javascripts/widgets/hamburger-menu-test.jsrename to test/javascripts/integration/widgets/hamburger-menu-test.jsdiff --git a/test/javascripts/widgets/header-test.js b/test/javascripts/integration/widgets/header-test.jssimilarity index 100%rename from test/javascripts/widgets/header-test.jsrename to test/javascripts/integration/widgets/header-test.jsdiff --git a/test/javascripts/widgets/home-logo-test.js b/test/javascripts/integration/widgets/home-logo-test.jssimilarity index 100%rename from test/javascripts/widgets/home-logo-test.jsrename to test/javascripts/integration/widgets/home-logo-test.jsdiff --git a/test/javascripts/widgets/post-links-test.js b/test/javascripts/integration/widgets/post-links-test.jssimilarity index 100%rename from test/javascripts/widgets/post-links-test.jsrename to test/javascripts/integration/widgets/post-links-test.jsdiff --git a/test/javascripts/widgets/post-menu-test.js b/test/javascripts/integration/widgets/post-menu-test.jssimilarity index 100%rename from test/javascripts/widgets/post-menu-test.jsrename to test/javascripts/integration/widgets/post-menu-test.jsdiff --git a/test/javascripts/widgets/post-stream-test.js b/test/javascripts/integration/widgets/post-stream-test.jssimilarity index 100%rename from test/javascripts/widgets/post-stream-test.jsrename to test/javascripts/integration/widgets/post-stream-test.jsdiff --git a/test/javascripts/widgets/post-test.js b/test/javascripts/integration/widgets/post-test.jssimilarity index 100%rename from test/javascripts/widgets/post-test.jsrename to test/javascripts/integration/widgets/post-test.jsdiff --git a/test/javascripts/widgets/poster-name-test.js b/test/javascripts/integration/widgets/poster-name-test.jssimilarity index 100%rename from test/javascripts/widgets/poster-name-test.jsrename to test/javascripts/integration/widgets/poster-name-test.jsdiff --git a/test/javascripts/widgets/quick-access-item-test.js b/test/javascripts/integration/widgets/quick-access-item-test.jssimilarity index 100%rename from test/javascripts/widgets/quick-access-item-test.jsrename to test/javascripts/integration/widgets/quick-access-item-test.jsdiff --git a/test/javascripts/widgets/small-user-list-test.js b/test/javascripts/integration/widgets/small-user-list-test.jssimilarity index 100%rename from test/javascripts/widgets/small-user-list-test.jsrename to test/javascripts/integration/widgets/small-user-list-test.jsdiff --git a/test/javascripts/widgets/topic-admin-menu-test.js b/test/javascripts/integration/widgets/topic-admin-menu-test.jssimilarity index 100%rename from test/javascripts/widgets/topic-admin-menu-test.jsrename to test/javascripts/integration/widgets/topic-admin-menu-test.jsdiff --git a/test/javascripts/widgets/topic-participant-test.js b/test/javascripts/integration/widgets/topic-participant-test.jssimilarity index 100%rename from test/javascripts/widgets/topic-participant-test.jsrename to test/javascripts/integration/widgets/topic-participant-test.jsdiff --git a/test/javascripts/widgets/topic-status-test.js b/test/javascripts/integration/widgets/topic-status-test.jssimilarity index 100%rename from test/javascripts/widgets/topic-status-test.jsrename to test/javascripts/integration/widgets/topic-status-test.jsdiff --git a/test/javascripts/widgets/user-menu-test.js b/test/javascripts/integration/widgets/user-menu-test.jssimilarity index 100%rename from test/javascripts/widgets/user-menu-test.jsrename to test/javascripts/integration/widgets/user-menu-test.jsdiff --git a/test/javascripts/widgets/widget-dropdown-test.js b/test/javascripts/integration/widgets/widget-dropdown-test.jssimilarity index 100%rename from test/javascripts/widgets/widget-dropdown-test.jsrename to test/javascripts/integration/widgets/widget-dropdown-test.jsdiff --git a/test/javascripts/widgets/widget-test.js b/test/javascripts/integration/widgets/widget-test.jssimilarity index 100%rename from test/javascripts/widgets/widget-test.jsrename to test/javascripts/integration/widgets/widget-test.jsdiff --git a/test/javascripts/test_helper.js b/test/javascripts/test_helper.jsindex 1a10683e56f..ef833ad84a7 100644--- a/test/javascripts/test_helper.js+++ b/test/javascripts/test_helper.js@@ -15,7 +15,7 @@//= require locales/en_US//= require discourse-loader-// Stuff we need to load first+// Our base application//= require vendor//= require discourse-shims//= require pretty-text-bundle@@ -28,15 +28,17 @@//= require handlebars//= require ember-template-compiler+// Test helpers//= require sinon/pkg/sinon--//= require helpers/assertions-+//= require_tree ./helpers//= require break_string-//= require helpers/qunit-helpers++// Finally, the tests themselves//= require_tree ./fixtures-//= require_tree ./lib-//= require_tree .+//= require_tree ./acceptance+//= require_tree ./integration+//= require_tree ./unit+//= require_tree ./admin//= require plugin_tests//= require_self//@@ -55,7 +57,7 @@ sinon.config = {injectInto: null,properties: ["spy", "stub", "mock", "clock", "sandbox"],useFakeTimers: true,- useFakeServer: false+ useFakeServer: false,};let MessageBus = require("message-bus-client").default;@@ -110,13 +112,13 @@ function resetSite(siteSettings, extras) {return Site.resetCurrent(Site.create(siteAttrs));}-QUnit.testStart(function(ctx) {+QUnit.testStart(function (ctx) {let settings = resetSettings();server = createPretender.default;createPretender.applyDefaultHandlers(server);server.handlers = [];- server.prepareBody = function(body) {+ server.prepareBody = function (body) {if (body && typeof body === "object") {return JSON.stringify(body);}@@ -124,12 +126,12 @@ QUnit.testStart(function(ctx) {};if (QUnit.config.logAllRequests) {- server.handledRequest = function(verb, path, request) {+ server.handledRequest = function (verb, path, request) {console.log("REQ: " + verb + " " + path);};}- server.unhandledRequest = function(verb, path) {+ server.unhandledRequest = function (verb, path) {if (QUnit.config.logAllRequests) {console.log("REQ: " + verb + " " + path + " missing");}@@ -141,14 +143,14 @@ QUnit.testStart(function(ctx) {throw new Error(error);};- server.checkPassthrough = request =>+ server.checkPassthrough = (request) =>request.requestHeaders["Discourse-Script"];if (ctx.module.startsWith(acceptanceModulePrefix)) {var helper = {parsePostData: createPretender.parsePostData,response: createPretender.response,- success: createPretender.success+ success: createPretender.success,};applyPretender(@@ -170,11 +172,11 @@ QUnit.testStart(function(ctx) {createHelperContext({siteSettings: settings,capabilities: {},- site+ site,});_DiscourseURL.redirectedTo = null;- _DiscourseURL.redirectTo = function(url) {+ _DiscourseURL.redirectTo = function (url) {_DiscourseURL.redirectedTo = url;};@@ -187,10 +189,10 @@ QUnit.testStart(function(ctx) {window.sandbox.stub(ScrollingDOMMethods, "unbindOnScroll");// Unless we ever need to test this, let's leave it off.- $.fn.autocomplete = function() {};+ $.fn.autocomplete = function () {};});-QUnit.testDone(function() {+QUnit.testDone(function () {window.sandbox.restore();// Destroy any modals@@ -224,7 +226,7 @@ var pluginPath = getUrlParameter("qunit_single_plugin")? "/" + getUrlParameter("qunit_single_plugin") + "/": "/plugins/";-Object.keys(requirejs.entries).forEach(function(entry) {+Object.keys(requirejs.entries).forEach(function (entry) {var isTest = /\-test/.test(entry);var regex = new RegExp(pluginPath);var isPlugin = regex.test(entry);diff --git a/test/javascripts/controllers/avatar-selector-test.js b/test/javascripts/unit/controllers/avatar-selector-test.jssimilarity index 100%rename from test/javascripts/controllers/avatar-selector-test.jsrename to test/javascripts/unit/controllers/avatar-selector-test.jsdiff --git a/test/javascripts/controllers/bookmark-test.js b/test/javascripts/unit/controllers/bookmark-test.jssimilarity index 100%rename from test/javascripts/controllers/bookmark-test.jsrename to test/javascripts/unit/controllers/bookmark-test.jsdiff --git a/test/javascripts/controllers/create-account-test.js b/test/javascripts/unit/controllers/create-account-test.jssimilarity index 100%rename from test/javascripts/controllers/create-account-test.jsrename to test/javascripts/unit/controllers/create-account-test.jsdiff --git a/test/javascripts/controllers/history-test.js b/test/javascripts/unit/controllers/history-test.jssimilarity index 100%rename from test/javascripts/controllers/history-test.jsrename to test/javascripts/unit/controllers/history-test.jsdiff --git a/test/javascripts/controllers/preferences-account-test.js b/test/javascripts/unit/controllers/preferences-account-test.jssimilarity index 100%rename from test/javascripts/controllers/preferences-account-test.jsrename to test/javascripts/unit/controllers/preferences-account-test.jsdiff --git a/test/javascripts/controllers/preferences-second-factor-test.js b/test/javascripts/unit/controllers/preferences-second-factor-test.jssimilarity index 100%rename from test/javascripts/controllers/preferences-second-factor-test.jsrename to test/javascripts/unit/controllers/preferences-second-factor-test.jsdiff --git a/test/javascripts/controllers/reorder-categories-test.js b/test/javascripts/unit/controllers/reorder-categories-test.jssimilarity index 100%rename from test/javascripts/controllers/reorder-categories-test.jsrename to test/javascripts/unit/controllers/reorder-categories-test.jsdiff --git a/test/javascripts/controllers/topic-test.js b/test/javascripts/unit/controllers/topic-test.jssimilarity index 100%rename from test/javascripts/controllers/topic-test.jsrename to test/javascripts/unit/controllers/topic-test.jsdiff --git a/test/javascripts/ember/resolver-test.js b/test/javascripts/unit/ember/resolver-test.jssimilarity index 100%rename from test/javascripts/ember/resolver-test.jsrename to test/javascripts/unit/ember/resolver-test.jsdiff --git a/test/javascripts/lib/bbcode-test.js b/test/javascripts/unit/lib/bbcode-test.jssimilarity index 100%rename from test/javascripts/lib/bbcode-test.jsrename to test/javascripts/unit/lib/bbcode-test.jsdiff --git a/test/javascripts/lib/bookmark-test.js b/test/javascripts/unit/lib/bookmark-test.jssimilarity index 100%rename from test/javascripts/lib/bookmark-test.jsrename to test/javascripts/unit/lib/bookmark-test.jsdiff --git a/test/javascripts/lib/break-string-test.js b/test/javascripts/unit/lib/break-string-test.jssimilarity index 100%rename from test/javascripts/lib/break-string-test.jsrename to test/javascripts/unit/lib/break-string-test.jsdiff --git a/test/javascripts/lib/category-badge-test.js b/test/javascripts/unit/lib/category-badge-test.jssimilarity index 100%rename from test/javascripts/lib/category-badge-test.jsrename to test/javascripts/unit/lib/category-badge-test.jsdiff --git a/test/javascripts/lib/click-track-edit-history-test.js b/test/javascripts/unit/lib/click-track-edit-history-test.jssimilarity index 100%rename from test/javascripts/lib/click-track-edit-history-test.jsrename to test/javascripts/unit/lib/click-track-edit-history-test.jsdiff --git a/test/javascripts/lib/click-track-profile-page-test.js b/test/javascripts/unit/lib/click-track-profile-page-test.jssimilarity index 100%rename from test/javascripts/lib/click-track-profile-page-test.jsrename to test/javascripts/unit/lib/click-track-profile-page-test.jsdiff --git a/test/javascripts/lib/click-track-test.js b/test/javascripts/unit/lib/click-track-test.jssimilarity index 100%rename from test/javascripts/lib/click-track-test.jsrename to test/javascripts/unit/lib/click-track-test.jsdiff --git a/test/javascripts/lib/computed-test.js b/test/javascripts/unit/lib/computed-test.jssimilarity index 100%rename from test/javascripts/lib/computed-test.jsrename to test/javascripts/unit/lib/computed-test.jsdiff --git a/test/javascripts/lib/emoji-store-test.js b/test/javascripts/unit/lib/emoji-store-test.jssimilarity index 100%rename from test/javascripts/lib/emoji-store-test.jsrename to test/javascripts/unit/lib/emoji-store-test.jsdiff --git a/test/javascripts/lib/emoji-test.js b/test/javascripts/unit/lib/emoji-test.jssimilarity index 100%rename from test/javascripts/lib/emoji-test.jsrename to test/javascripts/unit/lib/emoji-test.jsdiff --git a/test/javascripts/lib/formatter-test.js b/test/javascripts/unit/lib/formatter-test.jssimilarity index 100%rename from test/javascripts/lib/formatter-test.jsrename to test/javascripts/unit/lib/formatter-test.jsdiff --git a/test/javascripts/lib/get-url-test.js b/test/javascripts/unit/lib/get-url-test.jssimilarity index 100%rename from test/javascripts/lib/get-url-test.jsrename to test/javascripts/unit/lib/get-url-test.jsdiff --git a/test/javascripts/lib/highlight-search-test.js.es6 b/test/javascripts/unit/lib/highlight-search-test.js.es6similarity index 100%rename from test/javascripts/lib/highlight-search-test.js.es6rename to test/javascripts/unit/lib/highlight-search-test.js.es6diff --git a/test/javascripts/lib/i18n-test.js b/test/javascripts/unit/lib/i18n-test.jssimilarity index 100%rename from test/javascripts/lib/i18n-test.jsrename to test/javascripts/unit/lib/i18n-test.jsdiff --git a/test/javascripts/lib/icon-library-test.js b/test/javascripts/unit/lib/icon-library-test.jssimilarity index 100%rename from test/javascripts/lib/icon-library-test.jsrename to test/javascripts/unit/lib/icon-library-test.jsdiff --git a/test/javascripts/lib/key-value-store-test.js b/test/javascripts/unit/lib/key-value-store-test.jssimilarity index 100%rename from test/javascripts/lib/key-value-store-test.jsrename to test/javascripts/unit/lib/key-value-store-test.jsdiff --git a/test/javascripts/lib/link-mentions-test.js b/test/javascripts/unit/lib/link-mentions-test.jssimilarity index 100%rename from test/javascripts/lib/link-mentions-test.jsrename to test/javascripts/unit/lib/link-mentions-test.jsdiff --git a/test/javascripts/lib/load-script-test.js b/test/javascripts/unit/lib/load-script-test.jssimilarity index 100%rename from test/javascripts/lib/load-script-test.jsrename to test/javascripts/unit/lib/load-script-test.jsdiff --git a/test/javascripts/lib/oneboxer-test.js b/test/javascripts/unit/lib/oneboxer-test.jssimilarity index 100%rename from test/javascripts/lib/oneboxer-test.jsrename to test/javascripts/unit/lib/oneboxer-test.jsdiff --git a/test/javascripts/lib/preload-store-test.js b/test/javascripts/unit/lib/preload-store-test.jssimilarity index 100%rename from test/javascripts/lib/preload-store-test.jsrename to test/javascripts/unit/lib/preload-store-test.jsdiff --git a/test/javascripts/lib/pretty-text-test.js b/test/javascripts/unit/lib/pretty-text-test.jssimilarity index 100%rename from test/javascripts/lib/pretty-text-test.jsrename to test/javascripts/unit/lib/pretty-text-test.jsdiff --git a/test/javascripts/lib/sanitizer-test.js b/test/javascripts/unit/lib/sanitizer-test.jssimilarity index 100%rename from test/javascripts/lib/sanitizer-test.jsrename to test/javascripts/unit/lib/sanitizer-test.jsdiff --git a/test/javascripts/lib/search-test.js b/test/javascripts/unit/lib/search-test.jssimilarity index 100%rename from test/javascripts/lib/search-test.jsrename to test/javascripts/unit/lib/search-test.jsdiff --git a/test/javascripts/lib/sharing-test.js b/test/javascripts/unit/lib/sharing-test.jssimilarity index 100%rename from test/javascripts/lib/sharing-test.jsrename to test/javascripts/unit/lib/sharing-test.jsdiff --git a/test/javascripts/lib/text-direction-test.js b/test/javascripts/unit/lib/text-direction-test.jssimilarity index 100%rename from test/javascripts/lib/text-direction-test.jsrename to test/javascripts/unit/lib/text-direction-test.jsdiff --git a/test/javascripts/lib/to-markdown-test.js b/test/javascripts/unit/lib/to-markdown-test.jssimilarity index 100%rename from test/javascripts/lib/to-markdown-test.jsrename to test/javascripts/unit/lib/to-markdown-test.jsdiff --git a/test/javascripts/lib/upload-short-url-test.js b/test/javascripts/unit/lib/upload-short-url-test.jssimilarity index 100%rename from test/javascripts/lib/upload-short-url-test.jsrename to test/javascripts/unit/lib/upload-short-url-test.jsdiff --git a/test/javascripts/lib/uploads-test.js b/test/javascripts/unit/lib/uploads-test.jssimilarity index 100%rename from test/javascripts/lib/uploads-test.jsrename to test/javascripts/unit/lib/uploads-test.jsdiff --git a/test/javascripts/lib/url-test.js b/test/javascripts/unit/lib/url-test.jssimilarity index 100%rename from test/javascripts/lib/url-test.jsrename to test/javascripts/unit/lib/url-test.jsdiff --git a/test/javascripts/lib/user-search-test.js b/test/javascripts/unit/lib/user-search-test.jssimilarity index 100%rename from test/javascripts/lib/user-search-test.jsrename to test/javascripts/unit/lib/user-search-test.jsdiff --git a/test/javascripts/lib/utilities-test.js b/test/javascripts/unit/lib/utilities-test.jssimilarity index 100%rename from test/javascripts/lib/utilities-test.jsrename to test/javascripts/unit/lib/utilities-test.jsdiff --git a/test/javascripts/lib/white-lister-test.js b/test/javascripts/unit/lib/white-lister-test.jssimilarity index 100%rename from test/javascripts/lib/white-lister-test.jsrename to test/javascripts/unit/lib/white-lister-test.jsdiff --git a/test/javascripts/initializers/localization-test.js b/test/javascripts/unit/localization-test.jssimilarity index 100%rename from test/javascripts/initializers/localization-test.jsrename to test/javascripts/unit/localization-test.jsdiff --git a/test/javascripts/mixins/grant-badge-controller-test.js b/test/javascripts/unit/mixins/grant-badge-controller-test.jssimilarity index 100%rename from test/javascripts/mixins/grant-badge-controller-test.jsrename to test/javascripts/unit/mixins/grant-badge-controller-test.jsdiff --git a/test/javascripts/mixins/setting-object-test.js b/test/javascripts/unit/mixins/setting-object-test.jssimilarity index 100%rename from test/javascripts/mixins/setting-object-test.jsrename to test/javascripts/unit/mixins/setting-object-test.jsdiff --git a/test/javascripts/mixins/singleton-test.js b/test/javascripts/unit/mixins/singleton-test.jssimilarity index 100%rename from test/javascripts/mixins/singleton-test.jsrename to test/javascripts/unit/mixins/singleton-test.jsdiff --git a/test/javascripts/models/badge-test.js b/test/javascripts/unit/models/badge-test.jssimilarity index 100%rename from test/javascripts/models/badge-test.jsrename to test/javascripts/unit/models/badge-test.jsdiff --git a/test/javascripts/models/category-test.js b/test/javascripts/unit/models/category-test.jssimilarity index 100%rename from test/javascripts/models/category-test.jsrename to test/javascripts/unit/models/category-test.jsdiff --git a/test/javascripts/models/composer-test.js b/test/javascripts/unit/models/composer-test.jssimilarity index 100%rename from test/javascripts/models/composer-test.jsrename to test/javascripts/unit/models/composer-test.jsdiff --git a/test/javascripts/models/email-log-test.js b/test/javascripts/unit/models/email-log-test.jssimilarity index 100%rename from test/javascripts/models/email-log-test.jsrename to test/javascripts/unit/models/email-log-test.jsdiff --git a/test/javascripts/models/group-test.js b/test/javascripts/unit/models/group-test.jssimilarity index 100%rename from test/javascripts/models/group-test.jsrename to test/javascripts/unit/models/group-test.jsdiff --git a/test/javascripts/models/invite-test.js b/test/javascripts/unit/models/invite-test.jssimilarity index 100%rename from test/javascripts/models/invite-test.jsrename to test/javascripts/unit/models/invite-test.jsdiff --git a/test/javascripts/models/nav-item-test.js b/test/javascripts/unit/models/nav-item-test.jssimilarity index 100%rename from test/javascripts/models/nav-item-test.jsrename to test/javascripts/unit/models/nav-item-test.jsdiff --git a/test/javascripts/models/post-stream-test.js b/test/javascripts/unit/models/post-stream-test.jssimilarity index 100%rename from test/javascripts/models/post-stream-test.jsrename to test/javascripts/unit/models/post-stream-test.jsdiff --git a/test/javascripts/models/post-test.js b/test/javascripts/unit/models/post-test.jssimilarity index 100%rename from test/javascripts/models/post-test.jsrename to test/javascripts/unit/models/post-test.jsdiff --git a/test/javascripts/models/report-test.js b/test/javascripts/unit/models/report-test.jssimilarity index 100%rename from test/javascripts/models/report-test.jsrename to test/javascripts/unit/models/report-test.jsdiff --git a/test/javascripts/models/rest-model-test.js b/test/javascripts/unit/models/rest-model-test.jssimilarity index 100%rename from test/javascripts/models/rest-model-test.jsrename to test/javascripts/unit/models/rest-model-test.jsdiff --git a/test/javascripts/models/result-set-test.js b/test/javascripts/unit/models/result-set-test.jssimilarity index 100%rename from test/javascripts/models/result-set-test.jsrename to test/javascripts/unit/models/result-set-test.jsdiff --git a/test/javascripts/models/session-test.js b/test/javascripts/unit/models/session-test.jssimilarity index 100%rename from test/javascripts/models/session-test.jsrename to test/javascripts/unit/models/session-test.jsdiff --git a/test/javascripts/models/site-test.js b/test/javascripts/unit/models/site-test.jssimilarity index 100%rename from test/javascripts/models/site-test.jsrename to test/javascripts/unit/models/site-test.jsdiff --git a/test/javascripts/models/staff-action-log-test.js b/test/javascripts/unit/models/staff-action-log-test.jssimilarity index 100%rename from test/javascripts/models/staff-action-log-test.jsrename to test/javascripts/unit/models/staff-action-log-test.jsdiff --git a/test/javascripts/models/store-test.js b/test/javascripts/unit/models/store-test.jssimilarity index 100%rename from test/javascripts/models/store-test.jsrename to test/javascripts/unit/models/store-test.jsdiff --git a/test/javascripts/models/topic-details-test.js b/test/javascripts/unit/models/topic-details-test.jssimilarity index 100%rename from test/javascripts/models/topic-details-test.jsrename to test/javascripts/unit/models/topic-details-test.jsdiff --git a/test/javascripts/models/topic-test.js b/test/javascripts/unit/models/topic-test.jssimilarity index 100%rename from test/javascripts/models/topic-test.jsrename to test/javascripts/unit/models/topic-test.jsdiff --git a/test/javascripts/models/topic-tracking-state-test.js b/test/javascripts/unit/models/topic-tracking-state-test.jssimilarity index 100%rename from test/javascripts/models/topic-tracking-state-test.jsrename to test/javascripts/unit/models/topic-tracking-state-test.jsdiff --git a/test/javascripts/models/user-action-test.js b/test/javascripts/unit/models/user-action-test.jssimilarity index 100%rename from test/javascripts/models/user-action-test.jsrename to test/javascripts/unit/models/user-action-test.jsdiff --git a/test/javascripts/models/user-badge-test.js b/test/javascripts/unit/models/user-badge-test.jssimilarity index 100%rename from test/javascripts/models/user-badge-test.jsrename to test/javascripts/unit/models/user-badge-test.jsdiff --git a/test/javascripts/models/user-drafts-test.js b/test/javascripts/unit/models/user-drafts-test.jssimilarity index 100%rename from test/javascripts/models/user-drafts-test.jsrename to test/javascripts/unit/models/user-drafts-test.jsdiff --git a/test/javascripts/models/user-stream-test.js b/test/javascripts/unit/models/user-stream-test.jssimilarity index 100%rename from test/javascripts/models/user-stream-test.jsrename to test/javascripts/unit/models/user-stream-test.jsdiff --git a/test/javascripts/models/user-test.js b/test/javascripts/unit/models/user-test.jssimilarity index 100%rename from test/javascripts/models/user-test.jsrename to test/javascripts/unit/models/user-test.jsdiff --git a/test/javascripts/services/document-title-test.js b/test/javascripts/unit/services/document-title-test.jssimilarity index 100%rename from test/javascripts/services/document-title-test.jsrename to test/javascripts/unit/services/document-title-test.jsdiff --git a/test/javascripts/utils/decorators-test.js b/test/javascripts/unit/utils/decorators-test.jssimilarity index 100%rename from test/javascripts/utils/decorators-test.jsrename to test/javascripts/unit/utils/decorators-test.js