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:
Fredrik Adelöw
2022-06-09 16:41:12 +02:00
parent 4b7f4eb262
commit 935fa5d5d1
5 changed files with 73 additions and 8 deletions
+2 -2
View File
@@ -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));