···2// See the LICENCE file in the repository root for full licence text.
34import { BeatmapsetSearchFilters } from 'beatmapset-search-filters';
0056describe('BeatmapsetSearchFilters', () => {
7 let subject: BeatmapsetSearchFilters;
89 describe('.query', () => {
0000000010 beforeEach(() => {
11 subject = new BeatmapsetSearchFilters('https://notarealdomain');
12 });
···2// See the LICENCE file in the repository root for full licence text.
34import { BeatmapsetSearchFilters } from 'beatmapset-search-filters';
5+import core from 'osu-core-singleton';
6+import testCurrentUserJson from './test-current-user-json';
78describe('BeatmapsetSearchFilters', () => {
9 let subject: BeatmapsetSearchFilters;
1011 describe('.query', () => {
12+ beforeAll(() => {
13+ core.setCurrentUser(testCurrentUserJson);
14+ });
15+16+ afterAll(() => {
17+ core.setCurrentUser({ id: undefined });
18+ });
19+20 beforeEach(() => {
21 subject = new BeatmapsetSearchFilters('https://notarealdomain');
22 });
+2-17
tests/karma/globals.js
···1-/**
2- * Copyright (c) ppy Pty Ltd <contact@ppy.sh>.
3- *
4- * This file is part of osu!web. osu!web is distributed with the hope of
5- * attracting more community contributions to the core ecosystem of osu!.
6- *
7- * osu!web is free software: you can redistribute it and/or modify
8- * it under the terms of the Affero GNU General Public License version 3
9- * as published by the Free Software Foundation.
10- *
11- * osu!web is distributed WITHOUT ANY WARRANTY; without even the implied
12- * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13- * See the GNU Affero General Public License for more details.
14- *
15- * You should have received a copy of the GNU Affero General Public License
16- * along with osu!web. If not, see <http://www.gnu.org/licenses/>.
17- */
1819'use strict';
20
···1+// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
2+// See the LICENCE file in the repository root for full licence text.
00000000000000034'use strict';
5