Skip to content

Commit

Permalink
Fixed typos in tests and Error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoningLiu authored and vinjiang committed Dec 27, 2018
1 parent bc9e962 commit a1b7084
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion blob/lib/highlevel.browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
);
}

Expand Down
2 changes: 1 addition & 1 deletion blob/lib/highlevel.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
);
}

Expand Down
2 changes: 1 addition & 1 deletion blob/tests/browser/highlevel.browser.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion blob/tests/node/highlevel.node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down
2 changes: 1 addition & 1 deletion blob/tests/utils/InjectorPolicyFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a1b7084

Please sign in to comment.