settings_profile_fields: Use named export from sortablejs.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-02-28 12:26:33 -08:00
committed by Tim Abbott
parent 19e4328a7b
commit ac4e293da5
2 changed files with 2 additions and 2 deletions

View File

@@ -40,7 +40,7 @@ page_params.custom_profile_field_types = {
},
};
rewiremock("sortablejs").with({default: {create: () => {}}});
rewiremock("sortablejs").with({Sortable: {create: () => {}}});
rewiremock.enable();

View File

@@ -1,6 +1,6 @@
"use strict";
const {default: Sortable} = require("sortablejs");
const {Sortable} = require("sortablejs");
const render_admin_profile_field_list = require("../templates/admin_profile_field_list.hbs");
const render_settings_profile_field_choice = require("../templates/settings/profile_field_choice.hbs");