Skip to content

Commit

Permalink
Fix build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
PrasantJillella committed Aug 14, 2023
1 parent e0cb15e commit a6a3d72
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
2 changes: 1 addition & 1 deletion src/table/handlers/TableHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ export default class TableHandler extends BaseHandler implements ITableHandler {
}
if (options?.ifMatch && options.ifMatch !== "*" && options.ifMatch !== "") {
if (isEtagValid(options.ifMatch)) {
throw StorageErrorFactory.getInvalidInput(context);
throw StorageErrorFactory.getInvalidOperation(context);
}
}

Expand Down
10 changes: 0 additions & 10 deletions tests/table/apis/table.entity.issues.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,16 +249,6 @@ describe("table Entity APIs test : Issues", () => {
assert.strictEqual(storageError.statusCode, "InvalidInput");
assert.strictEqual(storageError.storageErrorCode, 400);
});

tableClient.mergeEntity({
partitionKey: partitionKey,
rowKey: rowKey,
ifMatch: malformedEtag
}).catch((reason) => {
const storageError = reason as StorageError;
assert.strictEqual(storageError.statusCode, "InvalidInput");
assert.strictEqual(storageError.storageErrorCode, 400);
});
});

// from issue #1214
Expand Down

0 comments on commit a6a3d72

Please sign in to comment.