diff --git a/sdk/communication/communication-sms/assets.json b/sdk/communication/communication-sms/assets.json index 2b9f2cdd129a..6f1969400763 100644 --- a/sdk/communication/communication-sms/assets.json +++ b/sdk/communication/communication-sms/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/communication/communication-sms", - "Tag": "js/communication/communication-sms_89bfd33ddf" + "Tag": "js/communication/communication-sms_b4dbaf2de3" } diff --git a/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts b/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts index b36148f4e348..f42148c9e71d 100644 --- a/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts +++ b/sdk/communication/communication-sms/test/internal/smsClient.internal.spec.ts @@ -180,7 +180,7 @@ matrix([[false, true]], async function (useAad: boolean) { const results = await client.optOuts.check(fromNumber, [validToNumber]); assert.lengthOf(results, 1, "must return as many results as there were recipients"); - assert.equal(200, results[0].httpStatusCode); + assert.equal(results[0].httpStatusCode, 200); }, ); @@ -193,7 +193,7 @@ matrix([[false, true]], async function (useAad: boolean) { const results = await client.optOuts.add(fromNumber, [validToNumber]); assert.lengthOf(results, 1, "must return as many results as there were recipients"); - assert.equal(200, results[0].httpStatusCode); + assert.equal(results[0].httpStatusCode, 200); }, ); @@ -206,7 +206,7 @@ matrix([[false, true]], async function (useAad: boolean) { const results = await client.optOuts.remove(fromNumber, [validToNumber]); assert.lengthOf(results, 1, "must return as many results as there were recipients"); - assert.equal(200, results[0].httpStatusCode); + assert.equal(results[0].httpStatusCode, 200); }, ); @@ -215,11 +215,11 @@ matrix([[false, true]], async function (useAad: boolean) { const validToNumber = env.AZURE_PHONE_NUMBER as string; const addResults = await client.optOuts.add(fromNumber, [validToNumber]); - assert.equal(200, addResults[0].httpStatusCode); + assert.equal(addResults[0].httpStatusCode, 200); const checkResults = await client.optOuts.check(fromNumber, [validToNumber]); - assert.equal(200, checkResults[0].httpStatusCode); - assert.equal(true, checkResults[0].isOptedOut); + assert.equal(checkResults[0].httpStatusCode, 200); + assert.equal(checkResults[0].isOptedOut, true); }); it("OptOut Remove should mark recipient as opted in", { timeout: 4000 }, async () => { @@ -227,11 +227,11 @@ matrix([[false, true]], async function (useAad: boolean) { const validToNumber = env.AZURE_PHONE_NUMBER as string; const removeResults = await client.optOuts.remove(fromNumber, [validToNumber]); - assert.equal(200, removeResults[0].httpStatusCode); + assert.equal(removeResults[0].httpStatusCode, 200); const checkResults = await client.optOuts.check(fromNumber, [validToNumber]); - assert.equal(200, checkResults[0].httpStatusCode); - assert.equal(false, checkResults[0].isOptedOut); + assert.equal(checkResults[0].httpStatusCode, 200); + assert.equal(checkResults[0].isOptedOut, false); }); }); }); diff --git a/sdk/communication/communication-sms/test/public/smsClient.spec.ts b/sdk/communication/communication-sms/test/public/smsClient.spec.ts index e42278914dd2..19fabb5267c3 100644 --- a/sdk/communication/communication-sms/test/public/smsClient.spec.ts +++ b/sdk/communication/communication-sms/test/public/smsClient.spec.ts @@ -181,7 +181,7 @@ matrix([[false, true]], async function (useAad: boolean) { const results = await client.optOuts.check(fromNumber, [validToNumber]); assert.lengthOf(results, 1, "must return as many results as there were recipients"); - assert.equal(200, results[0].httpStatusCode); + assert.equal(results[0].httpStatusCode, 200); }, ); @@ -194,7 +194,7 @@ matrix([[false, true]], async function (useAad: boolean) { const results = await client.optOuts.add(fromNumber, [validToNumber]); assert.lengthOf(results, 1, "must return as many results as there were recipients"); - assert.equal(200, results[0].httpStatusCode); + assert.equal(results[0].httpStatusCode, 200); }, ); @@ -207,7 +207,7 @@ matrix([[false, true]], async function (useAad: boolean) { const results = await client.optOuts.remove(fromNumber, [validToNumber]); assert.lengthOf(results, 1, "must return as many results as there were recipients"); - assert.equal(200, results[0].httpStatusCode); + assert.equal(results[0].httpStatusCode, 200); }, ); @@ -216,11 +216,11 @@ matrix([[false, true]], async function (useAad: boolean) { const validToNumber = env.AZURE_PHONE_NUMBER as string; const addResults = await client.optOuts.add(fromNumber, [validToNumber]); - assert.equal(200, addResults[0].httpStatusCode); + assert.equal(addResults[0].httpStatusCode, 200); const checkResults = await client.optOuts.check(fromNumber, [validToNumber]); - assert.equal(200, checkResults[0].httpStatusCode); - assert.equal(true, checkResults[0].isOptedOut); + assert.equal(checkResults[0].httpStatusCode, 200); + assert.equal(checkResults[0].isOptedOut, true); }); it("OptOut Remove should mark recipient as opted in", { timeout: 4000 }, async () => { @@ -228,11 +228,11 @@ matrix([[false, true]], async function (useAad: boolean) { const validToNumber = env.AZURE_PHONE_NUMBER as string; const removeResults = await client.optOuts.remove(fromNumber, [validToNumber]); - assert.equal(200, removeResults[0].httpStatusCode); + assert.equal(removeResults[0].httpStatusCode, 200); const checkResults = await client.optOuts.check(fromNumber, [validToNumber]); - assert.equal(200, checkResults[0].httpStatusCode); - assert.equal(false, checkResults[0].isOptedOut); + assert.equal(checkResults[0].httpStatusCode, 200); + assert.equal(checkResults[0].isOptedOut, false); }); }); },