Merge branch 'master' of github.com:spotify/backstage into migrate-to-msw
* 'master' of github.com:spotify/backstage: Read git auth token from backend config (#2992) chore(catalog-model): add the petstore into the default entities chore(deps-dev): bump @storybook/addon-actions from 6.0.21 to 6.0.26 chore(deps): bump eslint-config-prettier from 6.10.0 to 6.14.0 Add API docs link to About card adds a sample organization set of users and groups (#2963) Make sure hasCostsWithinTimeframe is a boolean fix(catalog-backend): fix codeowners processor to handle users feat(catalog): add simple client side paging default to last 30 days Removed default-branch library since it's no longer used (#3019) useRealTimers in onCssReady test case move type dependecy remove unused import changeset simpler query params
This commit is contained in:
@@ -25,14 +25,20 @@ import { onCssReady } from '../transformers';
|
||||
const docStorageUrl: string =
|
||||
'https://techdocs-mock-sites.storage.googleapis.com';
|
||||
|
||||
jest.useFakeTimers();
|
||||
|
||||
const fixture = `
|
||||
<link rel="stylesheet" href="${docStorageUrl}/test.css" />
|
||||
<link rel="stylesheet" href="http://example.com/test.css" />
|
||||
`;
|
||||
|
||||
describe('onCssReady', () => {
|
||||
beforeAll(() => {
|
||||
jest.useFakeTimers();
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
jest.useRealTimers();
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
mockStylesheetEventListener(100);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user