mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 06:41:25 +08:00
Removed bad JS tests, upgrade QUnit + ember-qunit
This commit is contained in:
@ -1,14 +1,5 @@
|
||||
moduleFor("controller:user-dropdown");
|
||||
|
||||
test("logout action logs out the current user", function () {
|
||||
const logoutMock = sinon.mock(Discourse, "logout");
|
||||
logoutMock.expects("logout").once();
|
||||
|
||||
this.subject().send('logout');
|
||||
|
||||
logoutMock.verify();
|
||||
});
|
||||
|
||||
test("showAdminLinks", function() {
|
||||
const currentUser = Ember.Object.create({ staff: true });
|
||||
const controller = this.subject({ currentUser });
|
||||
|
Reference in New Issue
Block a user