Fix: failed to get thumbnails under global OneDrive policy

This commit is contained in:
HFO4
2021-03-14 11:03:10 +08:00
parent d1377262e3
commit 170f2279c1
4 changed files with 7 additions and 17 deletions

View File

@@ -966,7 +966,7 @@ func TestClient_GetThumbURL(t *testing.T) {
Err: nil,
Response: &http.Response{
StatusCode: 200,
Body: ioutil.NopCloser(strings.NewReader(`{"value":[{"c1x1_Crop":{"url":"thumb"}}]}`)),
Body: ioutil.NopCloser(strings.NewReader(`{"value":[{"large":{"url":"thumb"}}]}`)),
},
})
client.Request = clientMock