remove some yarn.lock impurity in master by adjusting msw dep
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
@@ -44,9 +44,9 @@ describe('api', () => {
|
||||
server.use(
|
||||
rest.get(`${mockBaseUrl}/v1/secrets/:path`, (req, res, ctx) => {
|
||||
const { path } = req.params;
|
||||
if (path === 'test%2Fsuccess') {
|
||||
if (path === 'test/success') {
|
||||
return res(ctx.json(mockSecretsResult));
|
||||
} else if (path === 'test%2Ferror') {
|
||||
} else if (path === 'test/error') {
|
||||
return res(ctx.json([]));
|
||||
}
|
||||
return res(ctx.status(400));
|
||||
|
||||
@@ -27,7 +27,7 @@ import { ApiProvider, UrlPatternDiscovery } from '@backstage/core-app-api';
|
||||
import { VaultSecret, vaultApiRef, VaultClient } from '../../api';
|
||||
import { rest } from 'msw';
|
||||
|
||||
describe('EntityVautTable', () => {
|
||||
describe('EntityVaultTable', () => {
|
||||
const server = setupServer();
|
||||
setupRequestMockHandlers(server);
|
||||
let apis: TestApiRegistry;
|
||||
@@ -85,9 +85,9 @@ describe('EntityVautTable', () => {
|
||||
server.use(
|
||||
rest.get(`${mockBaseUrl}/v1/secrets/:path`, (req, res, ctx) => {
|
||||
const { path } = req.params;
|
||||
if (path === 'test%2Fsuccess') {
|
||||
if (path === 'test/success') {
|
||||
return res(ctx.json(mockSecretsResult));
|
||||
} else if (path === 'test%2Ferror') {
|
||||
} else if (path === 'test/error') {
|
||||
return res(ctx.json([]));
|
||||
}
|
||||
return res(ctx.status(400));
|
||||
|
||||
Reference in New Issue
Block a user