Fixed typos in tests and Error messages

This commit is contained in:
Xiaoning Liu 2018-12-27 15:47:28 +08:00 коммит произвёл Vincent Jiang (LEI)
Родитель bc9e9625d9
Коммит a1b7084089
5 изменённых файлов: 5 добавлений и 5 удалений

Просмотреть файл

@ -95,7 +95,7 @@ async function UploadSeekableBlobToBlockBlob(
options.maxSingleShotSize > BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES
) {
throw new RangeError(
`parallelismThreshold option must be >= 0 and <= ${BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`
`maxSingleShotSize option must be >= 0 and <= ${BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`
);
}

Просмотреть файл

@ -109,7 +109,7 @@ async function uploadResetableStreamToBlockBlob(
options.maxSingleShotSize > BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES
) {
throw new RangeError(
`parallelismThreshold option must be >= 0 and <= ${BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`
`maxSingleShotSize option must be >= 0 and <= ${BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES}`
);
}

Просмотреть файл

@ -123,7 +123,7 @@ describe("Highelvel", () => {
assert.equal(uploadedString, downloadedString);
});
it("uploadBrowserDataToBlockBlob should success when blob < BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES and configed parallism threshold", async () => {
it("uploadBrowserDataToBlockBlob should success when blob < BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES and configured maxSingleShotSize", async () => {
await uploadBrowserDataToBlockBlob(Aborter.none, tempFile2, blockBlobURL, {
blockSize: 512 * 1024,
maxSingleShotSize: 0

Просмотреть файл

@ -114,7 +114,7 @@ describe("Highlevel", () => {
assert.ok(downloadedData.equals(uploadedData));
});
it("uploadFileToBlockBlob should success when blob < BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES and configed parallism threshold", async () => {
it("uploadFileToBlockBlob should success when blob < BLOCK_BLOB_MAX_UPLOAD_BLOB_BYTES and configured maxSingleShotSize", async () => {
await uploadFileToBlockBlob(Aborter.none, tempFileSmall, blockBlobURL, {
maxSingleShotSize: 0
});

Просмотреть файл

@ -6,7 +6,7 @@ import {
import { InjectorPolicy, Injector } from "./InjectorPolicy";
/**
* InjectorPolicyFactory is a factory class inject customized errors for retry policy testing.
* InjectorPolicyFactory is a factory class which injects customized errors for retry policy testing.
*
* @export
* @class InjectorPolicyFactory