Skip to content

Commit

Permalink
chore: updated submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliano176 committed Feb 23, 2023
1 parent 7756c30 commit f96b622
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/carbonio-ui-commons
4 changes: 2 additions & 2 deletions src/ui-actions/tests/message-action.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { act } from '@testing-library/react';
import { rest } from 'msw';
import { generateStore } from '../../tests/generators/store';
import { getSetupServerApi } from '../../carbonio-ui-commons/test/jest-setup';
import { getSetupServer } from '../../carbonio-ui-commons/test/jest-setup';
import { MsgActionRequest } from '../../types';
import { dispatchMsgMove } from '../message-actions';

Expand All @@ -17,7 +17,7 @@ describe('Message Action', () => {
const store = generateStore();
const msgActionInterceptor = new Promise<MsgActionRequest>((resolve, reject) => {
// Register a handler for the REST call
getSetupServerApi().use(
getSetupServer().use(
rest.post('/service/soap/MsgActionRequest', async (req, res, ctx) => {
if (!req) {
reject(new Error('Empty request'));
Expand Down
14 changes: 7 additions & 7 deletions src/views/app/detail-panel/edit/tests/edit-view.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import { generateStore } from '../../../../../tests/generators/store';
import { saveDraftResult } from '../../../../../tests/mocks/network/msw/cases/saveDraft/saveDraft-1';
import { SoapDraftMessageObj } from '../../../../../types';
import EditView from '../edit-view';
import { getSetupServerApi } from '../../../../../carbonio-ui-commons/test/jest-setup';
import { getSetupServer } from '../../../../../carbonio-ui-commons/test/jest-setup';

/**
* Test the EditView component in different scenarios
Expand Down Expand Up @@ -120,7 +120,7 @@ describe('Edit view', () => {

const sendMsgPromise = new Promise<SoapDraftMessageObj>((resolve, reject) => {
// Register a handler for the REST call
getSetupServerApi().use(
getSetupServer().use(
rest.post('/service/soap/SendMsgRequest', async (req, res, ctx) => {
if (!req) {
reject(new Error('Empty request'));
Expand Down Expand Up @@ -220,7 +220,7 @@ describe('Edit view', () => {

const draftSavingInterceptor = new Promise<SoapDraftMessageObj>((resolve, reject) => {
// Register a handler for the REST call
getSetupServerApi().use(
getSetupServer().use(
rest.post('/service/soap/SaveDraftRequest', async (req, res, ctx) => {
if (!req) {
reject(new Error('Empty request'));
Expand Down Expand Up @@ -367,7 +367,7 @@ describe('Edit view', () => {

const draftSavingInterceptor = new Promise<SoapDraftMessageObj>((resolve, reject) => {
// Register a handler for the REST call
getSetupServerApi().use(
getSetupServer().use(
rest.post('/service/soap/SaveDraftRequest', async (req, res, ctx) => {
if (!req) {
reject(new Error('Empty request'));
Expand Down Expand Up @@ -428,7 +428,7 @@ describe('Edit view', () => {

const draftSavingInterceptor = new Promise<SoapDraftMessageObj>((resolve, reject) => {
// Register a handler for the REST call
getSetupServerApi().use(
getSetupServer().use(
rest.post('/service/soap/SaveDraftRequest', async (req, res, ctx) => {
if (!req) {
reject(new Error('Empty request'));
Expand Down Expand Up @@ -500,7 +500,7 @@ describe('Edit view', () => {

const draftSavingInterceptor = new Promise<SoapDraftMessageObj>((resolve, reject) => {
// Register a handler for the REST call
getSetupServerApi().use(
getSetupServer().use(
rest.post('/service/soap/SaveDraftRequest', async (req, res, ctx) => {
if (!req) {
reject(new Error('Empty request'));
Expand Down Expand Up @@ -608,7 +608,7 @@ describe('Edit view', () => {

const draftSavingInterceptor = new Promise<SoapDraftMessageObj>((resolve, reject) => {
// Register a handler for the REST call
getSetupServerApi().use(
getSetupServer().use(
rest.post('/service/soap/SaveDraftRequest', async (req, res, ctx) => {
callTester();

Expand Down

0 comments on commit f96b622

Please sign in to comment.