From 73054317e4b68be638b00535f2536bf92e747a64 Mon Sep 17 00:00:00 2001 From: ntsekouras Date: Thu, 24 Jun 2021 11:35:17 +0300 Subject: [PATCH] Fix tests --- packages/core-data/src/test/resolvers.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/core-data/src/test/resolvers.js b/packages/core-data/src/test/resolvers.js index e22958c387f83a..0cb095dc5fb874 100644 --- a/packages/core-data/src/test/resolvers.js +++ b/packages/core-data/src/test/resolvers.js @@ -120,8 +120,18 @@ describe( 'getEntityRecords', () => { page: { slug: 'page', id: 2 }, }; const ENTITIES = [ - { name: 'postType', kind: 'root', baseURL: '/wp/v2/types' }, - { name: 'postType', kind: 'root', baseURL: '/wp/v2/types' }, + { + name: 'postType', + kind: 'root', + baseURL: '/wp/v2/types', + baseURLParams: { context: 'edit' }, + }, + { + name: 'postType', + kind: 'root', + baseURL: '/wp/v2/types', + baseURLParams: { context: 'edit' }, + }, ]; it( 'yields with requested post type', async () => {