Skip to content

Commit

Permalink
remove unused callback
Browse files Browse the repository at this point in the history
  • Loading branch information
mtuchi committed Jul 25, 2023
1 parent 92f591a commit 4536acb
Showing 1 changed file with 14 additions and 56 deletions.
70 changes: 14 additions & 56 deletions packages/msgraph/test/Adaptor.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,10 @@ describe('getFolder', () => {
};

const finalState = await execute(
getFolder(
'01LUM6XOCKDTZKQC7AVZF2VMHE2I3O6OY3',
{ driveName: 'mydrive', metadata: true },
state => {
state.result = state.data;
return state;
}
)
getFolder('01LUM6XOCKDTZKQC7AVZF2VMHE2I3O6OY3', {
driveName: 'mydrive',
metadata: true,
})
)(state);

expect(finalState.data).to.eql(fixtures.itemResponse);
Expand All @@ -228,14 +224,7 @@ describe('getFolder', () => {
};

const finalState = await execute(
getFolder(
'01LUM6XOCKDTZKQC7AVZF2VMHE2I3O6OY3',
{ driveName: 'mydrive' },
state => {
state.result = state.data;
return state;
}
)
getFolder('01LUM6XOCKDTZKQC7AVZF2VMHE2I3O6OY3', { driveName: 'mydrive' })
)(state);

expect(finalState.data).to.eql(fixtures.itemsResponse);
Expand All @@ -254,10 +243,7 @@ describe('getFolder', () => {
};

const finalState = await execute(
getFolder('/Sample Data', { metadata: true }, state => {
state.result = state.data;
return state;
})
getFolder('/Sample Data', { metadata: true })
)(state);

expect(finalState.data).to.eql(fixtures.itemResponse);
Expand All @@ -275,12 +261,7 @@ describe('getFolder', () => {
},
};

const finalState = await execute(
getFolder('/Sample Data', {}, state => {
state.result = state.data;
return state;
})
)(state);
const finalState = await execute(getFolder('/Sample Data'))(state);

expect(finalState.data).to.eql(fixtures.itemsResponse);
});
Expand Down Expand Up @@ -347,10 +328,7 @@ describe('getFile', () => {
};

const finalState = await execute(
getFile('01LUM6XOGRONYNTZ26DBBJPTN5IFTQPBIW', {}, state => {
state.result = state.data;
return state;
})
getFile('01LUM6XOGRONYNTZ26DBBJPTN5IFTQPBIW')
)(state);

expect(finalState.data).to.eql(fixtures.itemContent);
Expand All @@ -369,14 +347,7 @@ describe('getFile', () => {
};

const finalState = await execute(
getFile(
'01LUM6XOGRONYNTZ26DBBJPTN5IFTQPBIW',
{ metadata: true },
state => {
state.result = state.data;
return state;
}
)
getFile('01LUM6XOGRONYNTZ26DBBJPTN5IFTQPBIW', { metadata: true })
)(state);

expect(finalState.data).to.eql(fixtures.itemWithDownloadUrl);
Expand All @@ -395,14 +366,7 @@ describe('getFile', () => {
};

const finalState = await execute(
getFile(
'01LUM6XOGRONYNTZ26DBBJPTN5IFTQPBIW',
{ driveName: 'mydrive' },
state => {
state.result = state.data;
return state;
}
)
getFile('01LUM6XOGRONYNTZ26DBBJPTN5IFTQPBIW', { driveName: 'mydrive' })
)(state);

expect(finalState.data).to.eql(fixtures.itemContent);
Expand All @@ -420,12 +384,9 @@ describe('getFile', () => {
},
};

const finalState = await execute(
getFile('/Sample Data/test.csv', {}, state => {
state.result = state.data;
return state;
})
)(state);
const finalState = await execute(getFile('/Sample Data/test.csv', {}))(
state
);

expect(finalState.data).to.eql(fixtures.itemContent);
});
Expand All @@ -443,10 +404,7 @@ describe('getFile', () => {
};

const finalState = await execute(
getFile('/Sample Data/test.csv', { metadata: true }, state => {
state.result = state.data;
return state;
})
getFile('/Sample Data/test.csv', { metadata: true })
)(state);

expect(finalState.data).to.eql(fixtures.itemWithDownloadUrl);
Expand Down

0 comments on commit 4536acb

Please sign in to comment.