FIX: Missing User objects in Utilities

This commit is contained in:
Robin Ward
2019-11-13 15:55:32 -05:00
parent f5ed0dc2e6
commit bc2067898e
12 changed files with 49 additions and 35 deletions

View File

@ -1,6 +1,7 @@
import DiscourseURL from "discourse/lib/url";
import ClickTrack from "discourse/lib/click-track";
import { fixture, logIn } from "helpers/qunit-helpers";
import User from "discourse/models/user";
QUnit.module("lib:click-track-edit-history", {
beforeEach() {
@ -93,7 +94,7 @@ QUnit.skip(
"tracks external URLs when opening in another window",
async assert => {
assert.expect(3);
Discourse.User.currentProp("external_links_in_new_tab", true);
User.currentProp("external_links_in_new_tab", true);
const done = assert.async();
/* global server */