refactor(test-utils): rename setupRequestMockHandlers to setupMswHandler
Signed-off-by: Camila Belo <camilaibs@gmail.com>
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { setupRequestMockHandlers } from '@backstage/test-utils';
|
||||
import { setupMswHandlers } from '@backstage/test-utils';
|
||||
import { rest } from 'msw';
|
||||
import { setupServer } from 'msw/node';
|
||||
import { NotificationPayload } from '@backstage/plugin-notifications-common';
|
||||
@@ -32,7 +32,7 @@ const testNotification: NotificationPayload = {
|
||||
|
||||
describe('DefaultNotificationService', () => {
|
||||
const server = setupServer();
|
||||
setupRequestMockHandlers(server);
|
||||
setupMswHandlers(server);
|
||||
|
||||
const discovery = mockServices.discovery.mock({
|
||||
getBaseUrl: jest.fn().mockResolvedValue('http://example.com'),
|
||||
|
||||
Reference in New Issue
Block a user