mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
29 lines
711 B
TypeScript
29 lines
711 B
TypeScript
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
|
|
|
import { credentials } from '../credentials';
|
|
|
|
describe('Microsoft SharePoint Node', () => {
|
|
const { baseUrl } = credentials.microsoftSharePointOAuth2Api;
|
|
new NodeTestHarness().setupTests({
|
|
credentials,
|
|
workflowFiles: ['download.workflow.json'],
|
|
assertBinaryData: true,
|
|
nock: {
|
|
baseUrl,
|
|
mocks: [
|
|
{
|
|
method: 'get',
|
|
path: '/sites/site1/drive/items/item1/content',
|
|
statusCode: 200,
|
|
responseBody: {},
|
|
responseHeaders: {
|
|
'content-type': 'application/json',
|
|
'content-disposition':
|
|
"attachment; filename*=UTF-8''weird%20file%20%E2%82%AC%20name.json",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
});
|
|
});
|