Skip to content

Commit 454b118

Browse files
committed
fix: adapt to rebased plugin arg fixes
1 parent 85cd6ea commit 454b118

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/unit/content-types/collection/single-manager.test.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,9 @@ describe('SingleTypeManager CRUD Methods', () => {
141141

142142
describe('Plugin Support', () => {
143143
beforeEach(() => {
144-
jest
145-
.spyOn(MockHttpClient.prototype, 'request')
146-
.mockImplementation(() =>
147-
Promise.resolve(
148-
new Response(JSON.stringify({ id: 1, setting: 'value' }), { status: 200 })
149-
)
150-
);
144+
vi.spyOn(MockHttpClient.prototype, 'request').mockImplementation(() =>
145+
Promise.resolve(new Response(JSON.stringify({ id: 1, setting: 'value' }), { status: 200 }))
146+
);
151147
});
152148

153149
it('should NOT wrap data when plugin is set to "users-permissions"', async () => {

0 commit comments

Comments
 (0)