···22// See the LICENCE file in the repository root for full licence text.
3344import { BeatmapsetSearchFilters } from 'beatmapset-search-filters';
55+import core from 'osu-core-singleton';
66+import testCurrentUserJson from './test-current-user-json';
5768describe('BeatmapsetSearchFilters', () => {
79 let subject: BeatmapsetSearchFilters;
810911 describe('.query', () => {
1212+ beforeAll(() => {
1313+ core.setCurrentUser(testCurrentUserJson);
1414+ });
1515+1616+ afterAll(() => {
1717+ core.setCurrentUser({ id: undefined });
1818+ });
1919+1020 beforeEach(() => {
1121 subject = new BeatmapsetSearchFilters('https://notarealdomain');
1222 });
+2-17
tests/karma/globals.js
···11-/**
22- * Copyright (c) ppy Pty Ltd <contact@ppy.sh>.
33- *
44- * This file is part of osu!web. osu!web is distributed with the hope of
55- * attracting more community contributions to the core ecosystem of osu!.
66- *
77- * osu!web is free software: you can redistribute it and/or modify
88- * it under the terms of the Affero GNU General Public License version 3
99- * as published by the Free Software Foundation.
1010- *
1111- * osu!web is distributed WITHOUT ANY WARRANTY; without even the implied
1212- * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1313- * See the GNU Affero General Public License for more details.
1414- *
1515- * You should have received a copy of the GNU Affero General Public License
1616- * along with osu!web. If not, see <http://www.gnu.org/licenses/>.
1717- */
11+// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
22+// See the LICENCE file in the repository root for full licence text.
183194'use strict';
205