Skip to content

Commit 84c3355

Browse files
Fix typos
1 parent 9d754b8 commit 84c3355

4 files changed

Lines changed: 26 additions & 26 deletions

File tree

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"bugs": "https://github.com/splitio/javascript-browser-client/issues",
6565
"homepage": "https://github.com/splitio/javascript-browser-client#readme",
6666
"dependencies": {
67-
"@splitsoftware/splitio-commons": "1.12.1-rc.0",
67+
"@splitsoftware/splitio-commons": "1.12.1-rc.1",
6868
"@types/google.analytics": "0.0.40",
6969
"unfetch": "^4.2.0"
7070
},

src/__tests__/consumer/browser_consumer.spec.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ tape('Browser Consumer mode with pluggable storage', function (t) {
132132
assert.equal(typeof client.track('user', 'test.event', 18).then, 'function', 'Track calls should always return a promise on Consumer mode.');
133133
assert.equal(typeof client.track().then, 'function', 'Track calls should always return a promise on Consumer mode, even when parameters are incorrect.');
134134

135-
assert.true(await client.track('user', 'test.event', 18), 'If the event was succesfully queued the promise will resolve to true');
136-
assert.false(await client.track(), 'If the event was NOT succesfully queued the promise will resolve to false');
135+
assert.true(await client.track('user', 'test.event', 18), 'If the event was successfully queued the promise will resolve to true');
136+
assert.false(await client.track(), 'If the event was NOT successfully queued the promise will resolve to false');
137137

138138
// Evaluations with flag sets
139139
assert.deepEqual(await client.getTreatmentsByFlagSet('set_a'), { with_set_a: 'on', with_sets_a_b: 'on' }, 'Evaluations with getTreatmentsByFlagSet should be correct.');
@@ -186,7 +186,7 @@ tape('Browser Consumer mode with pluggable storage', function (t) {
186186

187187
// Assert impressionsListener
188188
setTimeout(() => {
189-
assert.equal(impressions.length, TOTAL_RAW_IMPRESSIONS + TOTAL_RAW_IMPRESSIONS_IN_EVALUATIONS_WITH_FLAGSETS, 'Each evaluation has its corresponting impression');
189+
assert.equal(impressions.length, TOTAL_RAW_IMPRESSIONS + TOTAL_RAW_IMPRESSIONS_IN_EVALUATIONS_WITH_FLAGSETS, 'Each evaluation has its corresponding impression');
190190
assert.equal(impressions[0].impression.label, SDK_NOT_READY, 'The first impression is control with label "sdk not ready"');
191191

192192
assert.end();
@@ -282,8 +282,8 @@ tape('Browser Consumer mode with pluggable storage', function (t) {
282282
assert.equal(typeof client.track('user', 'test.event', 18).then, 'function', 'Track calls should always return a promise on Consumer mode.');
283283
assert.equal(typeof client.track().then, 'function', 'Track calls should always return a promise on Consumer mode, even when parameters are incorrect.');
284284

285-
assert.true(await client.track('user', 'test.event', 18), 'If the event was succesfully queued the promise will resolve to true');
286-
assert.false(await client.track(), 'If the event was NOT succesfully queued the promise will resolve to false');
285+
assert.true(await client.track('user', 'test.event', 18), 'If the event was successfully queued the promise will resolve to true');
286+
assert.false(await client.track(), 'If the event was NOT successfully queued the promise will resolve to false');
287287

288288
// New shared client created
289289
const newClient = sdk.client('other');
@@ -318,7 +318,7 @@ tape('Browser Consumer mode with pluggable storage', function (t) {
318318

319319
// Assert impressionsListener
320320
setTimeout(() => {
321-
assert.equal(impressions.length, TOTAL_RAW_IMPRESSIONS, 'Each evaluation has its corresponting impression');
321+
assert.equal(impressions.length, TOTAL_RAW_IMPRESSIONS, 'Each evaluation has its corresponding impression');
322322
assert.equal(impressions[0].impression.label, SDK_NOT_READY, 'The first impression is control with label "sdk not ready"');
323323

324324
assert.end();
@@ -414,8 +414,8 @@ tape('Browser Consumer mode with pluggable storage', function (t) {
414414
assert.equal(typeof client.track('user', 'test.event', 18).then, 'function', 'Track calls should always return a promise on Consumer mode.');
415415
assert.equal(typeof client.track().then, 'function', 'Track calls should always return a promise on Consumer mode, even when parameters are incorrect.');
416416

417-
assert.true(await client.track('user', 'test.event', 18), 'If the event was succesfully queued the promise will resolve to true');
418-
assert.false(await client.track(), 'If the event was NOT succesfully queued the promise will resolve to false');
417+
assert.true(await client.track('user', 'test.event', 18), 'If the event was successfully queued the promise will resolve to true');
418+
assert.false(await client.track(), 'If the event was NOT successfully queued the promise will resolve to false');
419419

420420
// New shared client created
421421
const newClient = sdk.client('other');
@@ -472,7 +472,7 @@ tape('Browser Consumer mode with pluggable storage', function (t) {
472472

473473
// Assert impressionsListener
474474
setTimeout(() => {
475-
assert.equal(impressions.length, TOTAL_RAW_IMPRESSIONS, 'Each evaluation has its corresponting impression');
475+
assert.equal(impressions.length, TOTAL_RAW_IMPRESSIONS, 'Each evaluation has its corresponding impression');
476476
assert.equal(impressions[0].impression.label, SDK_NOT_READY, 'The first impression is control with label "sdk not ready"');
477477

478478
assert.end();
@@ -522,8 +522,8 @@ tape('Browser Consumer mode with pluggable storage', function (t) {
522522
// some asserts to test regular usage
523523
assert.equal(await client.getTreatment('UT_IN_SEGMENT'), 'on', 'Evaluations using pluggable storage should be correct.');
524524
assert.equal(await otherClient.getTreatment('UT_IN_SEGMENT'), 'off', 'Evaluations using pluggable storage should be correct.');
525-
assert.true(await client.track('user', 'test.event', 18), 'If the event was succesfully queued the promise will resolve to true');
526-
assert.false(await client.track(), 'If the event was NOT succesfully queued the promise will resolve to false');
525+
assert.true(await client.track('user', 'test.event', 18), 'If the event was successfully queued the promise will resolve to true');
526+
assert.false(await client.track(), 'If the event was NOT successfully queued the promise will resolve to false');
527527

528528
await client.destroy();
529529
assert.end();
@@ -563,7 +563,7 @@ tape('Browser Consumer mode with pluggable storage', function (t) {
563563

564564
// Assert impressionsListener
565565
setTimeout(() => {
566-
assert.equal(impressions.length, 2, 'Each evaluation has its corresponting impression');
566+
assert.equal(impressions.length, 2, 'Each evaluation has its corresponding impression');
567567
assert.equal(impressions[1].impression.label, EXCEPTION, 'The last impression is control with label "exception"');
568568

569569
assert.end();

src/__tests__/consumer/browser_consumer_partial.spec.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,8 @@ tape('Browser Consumer Partial mode with pluggable storage', function (t) {
158158
assert.equal(typeof client.track('user', 'test.event', 18).then, 'function', 'Track calls should always return a promise on Consumer mode.');
159159
assert.equal(typeof client.track().then, 'function', 'Track calls should always return a promise on Consumer mode, even when parameters are incorrect.');
160160

161-
assert.true(await client.track('user', 'test.event', 18), 'If the event was succesfully queued the promise will resolve to true');
162-
assert.false(await client.track(), 'If the event was NOT succesfully queued the promise will resolve to false');
161+
assert.true(await client.track('user', 'test.event', 18), 'If the event was successfully queued the promise will resolve to true');
162+
assert.false(await client.track(), 'If the event was NOT successfully queued the promise will resolve to false');
163163

164164
// Evaluations with flag sets
165165
assert.deepEqual(await client.getTreatmentsByFlagSet('set_a'), { with_set_a: 'on', with_sets_a_b: 'on' }, 'Evaluations with getTreatmentsByFlagSet should be correct.');
@@ -201,7 +201,7 @@ tape('Browser Consumer Partial mode with pluggable storage', function (t) {
201201

202202
// Assert impressionsListener
203203
setTimeout(() => {
204-
assert.equal(impressions.length, TOTAL_RAW_IMPRESSIONS + TOTAL_RAW_IMPRESSIONS_IN_EVALUATIONS_WITH_FLAGSETS, 'Each evaluation has its corresponting impression');
204+
assert.equal(impressions.length, TOTAL_RAW_IMPRESSIONS + TOTAL_RAW_IMPRESSIONS_IN_EVALUATIONS_WITH_FLAGSETS, 'Each evaluation has its corresponding impression');
205205
assert.equal(impressions[0].impression.label, SDK_NOT_READY, 'The first impression is control with label "sdk not ready"');
206206

207207
assert.end();
@@ -326,8 +326,8 @@ tape('Browser Consumer Partial mode with pluggable storage', function (t) {
326326
assert.equal(typeof client.track('user', 'test.event', 18).then, 'function', 'Track calls should always return a promise on Consumer mode.');
327327
assert.equal(typeof client.track().then, 'function', 'Track calls should always return a promise on Consumer mode, even when parameters are incorrect.');
328328

329-
assert.true(await client.track('user', 'test.event', 18), 'If the event was succesfully queued the promise will resolve to true');
330-
assert.false(await client.track(), 'If the event was NOT succesfully queued the promise will resolve to false');
329+
assert.true(await client.track('user', 'test.event', 18), 'If the event was successfully queued the promise will resolve to true');
330+
assert.false(await client.track(), 'If the event was NOT successfully queued the promise will resolve to false');
331331

332332
// New shared client created
333333
const newClient = sdk.client('other');
@@ -348,7 +348,7 @@ tape('Browser Consumer Partial mode with pluggable storage', function (t) {
348348

349349
// Assert impressionsListener
350350
setTimeout(() => {
351-
assert.equal(impressions.length, TOTAL_RAW_IMPRESSIONS, 'Each evaluation has its corresponting impression');
351+
assert.equal(impressions.length, TOTAL_RAW_IMPRESSIONS, 'Each evaluation has its corresponding impression');
352352
assert.equal(impressions[0].impression.label, SDK_NOT_READY, 'The first impression is control with label "sdk not ready"');
353353

354354
assert.end();

0 commit comments

Comments
 (0)