Skip to content

Commit

Permalink
feat(useEndpointForVADCDataDictionary): eslint disabled rule for msw …
Browse files Browse the repository at this point in the history
…rest import
  • Loading branch information
jarvisraymond-uchicago committed Apr 22, 2024
1 parent 0d4f47d commit de46a6a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable import/no-extraneous-dependencies */
import React from 'react';
import { rest } from 'msw';
import AtlasDataDictionaryLoading from './AtlasDataDictionaryLoading';
Expand Down Expand Up @@ -44,7 +45,8 @@ export const Mocked504Response = MockTemplate.bind({});
Mocked504Response.parameters = {
msw: {
handlers: {
auth: rest.get(endpoint, (req, res, ctx) => res(ctx.delay(3000), ctx.status(504), ctx.json('server timeout'))),
auth: rest.get(endpoint, (req, res, ctx) => res(ctx.delay(3000),
ctx.status(504), ctx.json('server timeout'))),
},
},
};

0 comments on commit de46a6a

Please sign in to comment.