Skip to content

Commit 1c5d3db

Browse files
Bump the vitest-dependencies group with 4 updates (internal-9164)
GitOrigin-RevId: f74d9e33ec399f0aa3ef442fe6352bc01ca0b9a4
1 parent e2f6df1 commit 1c5d3db

2 files changed

Lines changed: 78 additions & 75 deletions

File tree

package-lock.json

Lines changed: 72 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/unit/terrain/terrain.test.ts

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ describe('Elevation', () => {
144144
});
145145
});
146146

147-
test('style diff / remove dem source cache', () => {
147+
describe('Throws error if style update tries to remove terrain DEM source', () => {
148148
let map: any;
149149

150150
beforeAll(async () => {
@@ -154,13 +154,11 @@ describe('Elevation', () => {
154154
await waitFor(map, 'render');
155155
});
156156

157-
describe('Throws error if style update tries to remove terrain DEM source', () => {
158-
test('remove source', () => {
159-
const stub = vi.spyOn(console, 'error');
160-
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
161-
map.removeSource('mapbox-dem');
162-
expect(stub.calledOnce).toBeTruthy();
163-
});
157+
test('remove source', () => {
158+
const stub = vi.spyOn(console, 'error').mockImplementation(() => {});
159+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call, @typescript-eslint/no-unsafe-member-access
160+
map.removeSource('mapbox-dem');
161+
expect(stub).toHaveBeenCalledOnce();
164162
});
165163
});
166164

0 commit comments

Comments
 (0)