Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit efc0453

Browse files
committed
refactor: test case
1 parent 7997488 commit efc0453

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

test/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,6 +1220,7 @@ describe('Storage', () => {
12201220
reqOpts: DecorateRequestOptions,
12211221
callback: Function
12221222
) => {
1223+
assert.strictEqual(reqOpts.qs.returnPartialSuccess, true);
12231224
callback(null, resp);
12241225
};
12251226

@@ -1243,9 +1244,7 @@ describe('Storage', () => {
12431244
reqOpts: DecorateRequestOptions,
12441245
callback: Function
12451246
) => {
1246-
if (reqOpts.qs.returnPartialSuccess !== undefined) {
1247-
assert.strictEqual(reqOpts.qs.returnPartialSuccess, true);
1248-
}
1247+
assert.strictEqual(reqOpts.qs.returnPartialSuccess, true);
12491248
callback(null, resp);
12501249
};
12511250

0 commit comments

Comments
 (0)