Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ahmed/dapi 821/fix sync endpoint config v3 #179

257 changes: 0 additions & 257 deletions _data/v3.yml

This file was deleted.

34 changes: 34 additions & 0 deletions jest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,37 @@ console.warn = (...args) => {
originalConsoleWarn(...args);
}
};

const mockYamlContent = `
groups:
- label: All Calls
methods:
- name: account_list
title: Account List
- name: active_symbols
title: Active Symbols
- name: app_get
title: Application: Get Details
`;

jest.mock('yaml', () => ({
parse: jest.fn(() => ({
groups: [
{
label: 'All Calls',
methods: [
{ name: 'account_list', title: 'Account List' },
{ name: 'active_symbols', title: 'Active Symbols' },
{ name: 'app_get', title: 'Application: Get Details' },
],
},
],
})),
}));

global.fetch = jest.fn(() =>
Promise.resolve({
text: () => Promise.resolve(mockYamlContent),
}),
) as jest.Mock;

36 changes: 30 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading