From 00402ac67243d53fed6331925a40357290edff42 Mon Sep 17 00:00:00 2001 From: pubkey <8926560+pubkey@users.noreply.github.com> Date: Tue, 1 Nov 2022 23:50:24 +0100 Subject: [PATCH] FIX typos --- config/codespellignore.txt | 1 + test/performance.test.ts | 10 ++--- test/typings.test.ts | 4 +- test/unit/attachments.test.ts | 14 +++--- test/unit/bug-report.test.ts | 4 +- test/unit/cleanup.test.ts | 2 +- test/unit/config.ts | 2 +- test/unit/core.node.ts | 4 +- test/unit/cross-instance.test.ts | 4 +- test/unit/encryption.test.ts | 4 +- test/unit/event-reduce.test.ts | 2 +- test/unit/full.node.ts | 4 +- test/unit/key-compression.test.ts | 14 +++--- test/unit/local-documents.test.ts | 2 +- test/unit/pouch-db-integration.test.ts | 4 +- test/unit/query-builder.test.ts | 22 +++++----- test/unit/query-planner.test.ts | 2 +- test/unit/reactive-query.test.ts | 2 +- test/unit/replication-couchdb.test.ts | 46 ++++++++++---------- test/unit/replication-graphql.test.ts | 2 +- test/unit/replication-protocol.test.ts | 4 +- test/unit/replication.test.ts | 2 +- test/unit/rx-collection.test.ts | 4 +- test/unit/rx-document.test.ts | 2 +- test/unit/rx-schema.test.ts | 2 +- test/unit/rx-storage-implementations.test.ts | 8 ++-- test/unit/rx-storage-lokijs.test.ts | 2 +- 27 files changed, 87 insertions(+), 86 deletions(-) diff --git a/config/codespellignore.txt b/config/codespellignore.txt index 670402272db..21ff558dd21 100644 --- a/config/codespellignore.txt +++ b/config/codespellignore.txt @@ -1,3 +1,4 @@ statics falsy nin +shouldBe diff --git a/test/performance.test.ts b/test/performance.test.ts index d1b21948cdf..b13f44022b9 100644 --- a/test/performance.test.ts +++ b/test/performance.test.ts @@ -65,7 +65,7 @@ describe('performance.test.ts', () => { eventReduce: true, /** * A RxStorage implementation (like LokiJS) - * might need a full leader election cycle to be useable. + * might need a full leader election cycle to be usable. * So we disable multiInstance here because it would make no sense * to measure the leader election time instead of the database * creation time. @@ -120,7 +120,7 @@ describe('performance.test.ts', () => { /** * Find by id, - * here we run the query agains the storage because + * here we run the query against the storage because * if we would do collection.findByIds(), it would * just return the documents from the cache. * @@ -186,12 +186,12 @@ export function averageOfTimeValues( /** * To better account for anomalies * during time measurements, - * we strip the heighest x percent. + * we strip the highest x percent. */ - stripHeighestXPercent: number + striphighestXPercent: number ): number { times = times.sort((a, b) => a - b); - const stripAmount = Math.floor(times.length * (stripHeighestXPercent * 0.01)); + const stripAmount = Math.floor(times.length * (striphighestXPercent * 0.01)); const useNumbers = times.slice(0, times.length - stripAmount); let total = 0; useNumbers.forEach(nr => total = total + nr); diff --git a/test/typings.test.ts b/test/typings.test.ts index 3b546975149..6d14ca747cc 100644 --- a/test/typings.test.ts +++ b/test/typings.test.ts @@ -84,7 +84,7 @@ describe('typings.test.js', function () { }; config.parallel('basic', () => { - it('should sucess on basic test', async () => { + it('should success on basic test', async () => { await transpileCode('console.log("Hello, world!")'); }); it('should fail on broken code', async () => { @@ -369,7 +369,7 @@ describe('typings.test.js', function () { `; await transpileCode(code); }); - it('use underlaying pouchdb', async () => { + it('use underlying pouchdb', async () => { const code = codeBase + ` (async() => { const myDb: RxDatabase = await createRxDatabase({ diff --git a/test/unit/attachments.test.ts b/test/unit/attachments.test.ts index 22dff98bfb3..5a7bbd3ff31 100644 --- a/test/unit/attachments.test.ts +++ b/test/unit/attachments.test.ts @@ -102,7 +102,7 @@ config.parallel('attachments.test.ts', () => { base64StringNode ); }); - it('image attachment should be useable as img-element after base64<->Blob transformations', async function () { + it('image attachment should be usable as img-element after base64<->Blob transformations', async function () { if (config.platform.isNode()) { return; } @@ -460,7 +460,7 @@ config.parallel('attachments.test.ts', () => { assert.strictEqual(data, 'foo bar aaa'); c.database.destroy(); }); - it('should be able to render an encrytped stored image attachment', async () => { + it('should be able to render an encrypted stored image attachment', async () => { if (config.platform.isNode()) { return; } @@ -496,13 +496,13 @@ config.parallel('attachments.test.ts', () => { type: 'text/plain' }); - const emited: any[] = []; + const emitted: any[] = []; const sub = doc.allAttachments$ - .subscribe((attachments: any[]) => emited.push(attachments)); - await AsyncTestUtil.waitUntil(() => emited.length === 1); + .subscribe((attachments: any[]) => emitted.push(attachments)); + await AsyncTestUtil.waitUntil(() => emitted.length === 1); - assert.strictEqual(emited[0].length, 1); - assert.ok(emited[0][0].doc); + assert.strictEqual(emitted[0].length, 1); + assert.ok(emitted[0][0].doc); sub.unsubscribe(); c.database.destroy(); diff --git a/test/unit/bug-report.test.ts b/test/unit/bug-report.test.ts index e71df75d898..089fd9323fb 100644 --- a/test/unit/bug-report.test.ts +++ b/test/unit/bug-report.test.ts @@ -2,7 +2,7 @@ * this is a template for a test. * If you found a bug, edit this test to reproduce it * and than make a pull-request with that failing test. - * The maintainer will later move your test to the correct possition in the test-suite. + * The maintainer will later move your test to the correct position in the test-suite. * * To run this test do: * - 'npm run test:node' so it runs in nodejs @@ -22,7 +22,7 @@ describe('bug-report.test.js', () => { /** * If your test should only run in nodejs or only run in the browser, - * you should comment in the return operator and addapt the if statement. + * you should comment in the return operator and adapt the if statement. */ if ( !config.platform.isNode() // runs only in node diff --git a/test/unit/cleanup.test.ts b/test/unit/cleanup.test.ts index 4526353123f..28bda38d33f 100644 --- a/test/unit/cleanup.test.ts +++ b/test/unit/cleanup.test.ts @@ -88,7 +88,7 @@ config.parallel('cleanup.test.js', () => { pull: { async handler() { await wait(50); - throw new Error('never sucess'); + throw new Error('never success'); } }, live: true diff --git a/test/unit/config.ts b/test/unit/config.ts index 560f3919ac0..81518d12996 100644 --- a/test/unit/config.ts +++ b/test/unit/config.ts @@ -155,7 +155,7 @@ export function setDefaultStorage(storageKey: string) { /** * We run the tests once together * with a validation plugin - * to ensure we do not accidentially use non-valid data + * to ensure we do not accidentally use non-valid data * in the tests. */ case 'memory-validation': diff --git a/test/unit/core.node.ts b/test/unit/core.node.ts index 0e15ac716a2..4c26fad622e 100644 --- a/test/unit/core.node.ts +++ b/test/unit/core.node.ts @@ -1,6 +1,6 @@ /** - * this test checks if the core-module is useable without any plugins - * this is run in a seperate node-process via plugin.test.js + * this test checks if the core-module is usable without any plugins + * this is run in a separate node-process via plugin.test.js */ import assert from 'assert'; diff --git a/test/unit/cross-instance.test.ts b/test/unit/cross-instance.test.ts index b5ac798df8b..cfec01c6f3d 100644 --- a/test/unit/cross-instance.test.ts +++ b/test/unit/cross-instance.test.ts @@ -329,7 +329,7 @@ config.parallel('cross-instance.test.js', () => { }); describe('AutoPull', () => { describe('positive', () => { - it('should recieve events on the other side', async () => { + it('should receive events on the other side', async () => { const name = randomCouchString(10); const c1 = await humansCollection.createMultiInstance(name); const c2 = await humansCollection.createMultiInstance(name); @@ -344,7 +344,7 @@ config.parallel('cross-instance.test.js', () => { c1.database.destroy(); c2.database.destroy(); }); - it('should recieve 2 events', async () => { + it('should receive 2 events', async () => { const name = randomCouchString(10); const c1 = await humansCollection.createMultiInstance(name); const c2 = await humansCollection.createMultiInstance(name); diff --git a/test/unit/encryption.test.ts b/test/unit/encryption.test.ts index 4de1ef562f4..3e7f1a29bc8 100644 --- a/test/unit/encryption.test.ts +++ b/test/unit/encryption.test.ts @@ -72,7 +72,7 @@ config.parallel('encryption.test.ts', () => { const decrypted = decryptString(encrypted, 'mypw'); assert.deepStrictEqual(decrypted, value); }); - it('should encrypt and decrypt an extremly long string', () => { + it('should encrypt and decrypt an extremely long string', () => { const value = randomCouchString(5000); const pwd = 'pwd'; const encrypted = encryptString(value, pwd); @@ -82,7 +82,7 @@ config.parallel('encryption.test.ts', () => { assert.strictEqual(typeof encrypted, 'string'); assert.strictEqual(value, decrypted); }); - it('should encrypt and decrypt an extremly long password', () => { + it('should encrypt and decrypt an extremely long password', () => { const value = 'foobar'; const pwd = randomCouchString(5000); const encrypted = encryptString(value, pwd); diff --git a/test/unit/event-reduce.test.ts b/test/unit/event-reduce.test.ts index a477c131a37..0935d38d6ae 100644 --- a/test/unit/event-reduce.test.ts +++ b/test/unit/event-reduce.test.ts @@ -243,7 +243,7 @@ describe('event-reduce.test.js', () => { } }, // TODO it should also work without the sorting - // because RxDB should add predicatble sort if primary not used in sorting + // because RxDB should add predictable sort if primary not used in sorting sort: [{ passportId: 'asc' }] diff --git a/test/unit/full.node.ts b/test/unit/full.node.ts index 92174d89b8d..f926bda26ec 100644 --- a/test/unit/full.node.ts +++ b/test/unit/full.node.ts @@ -1,6 +1,6 @@ /** * this tests some basic behavior and then exits with zero-code - * this is run in a seperate node-process via plugin.test.js + * this is run in a separate node-process via plugin.test.js */ import assert from 'assert'; @@ -87,7 +87,7 @@ const run = async function () { collection, replicationIdentifier: 'my-custom-rest-replication', live: true, - // use realy high values to ensure that the CI fails if the node process does not exit by itself. + // use really high values to ensure that the CI fails if the node process does not exit by itself. retryTime: 50000, pull: { handler() { diff --git a/test/unit/key-compression.test.ts b/test/unit/key-compression.test.ts index cea980f88bc..f06d5a73e14 100644 --- a/test/unit/key-compression.test.ts +++ b/test/unit/key-compression.test.ts @@ -231,7 +231,7 @@ config.parallel('key-compression.test.js', () => { createdAt: number; read: boolean; sender: string; - reciever: string; + receiver: string; }; const schema: RxJsonSchema = { title: 'messages schema', @@ -255,7 +255,7 @@ config.parallel('key-compression.test.js', () => { multipleOf: 1 }, read: { - description: 'true if was read by the reciever', + description: 'true if was read by the receiver', type: 'boolean' }, sender: { @@ -263,7 +263,7 @@ config.parallel('key-compression.test.js', () => { ref: 'users', maxLength: 40 }, - reciever: { + receiver: { type: 'string', ref: 'users', maxLength: 40 @@ -277,7 +277,7 @@ config.parallel('key-compression.test.js', () => { 'createdAt', 'read', 'sender', - 'reciever' + 'receiver' ] }; @@ -300,18 +300,18 @@ config.parallel('key-compression.test.js', () => { createdAt: 100, read: false, sender: 'a', - reciever: 'b' + receiver: 'b' }); const query = collection.findOne({ selector: { $or: [ { sender: 'a', - reciever: 'b' + receiver: 'b' }, { sender: 'b', - reciever: 'a' + receiver: 'a' } ] }, diff --git a/test/unit/local-documents.test.ts b/test/unit/local-documents.test.ts index 37d916cf721..af5bd89fce3 100644 --- a/test/unit/local-documents.test.ts +++ b/test/unit/local-documents.test.ts @@ -487,7 +487,7 @@ config.parallel('local-documents.test.js', () => { * was emitted. Otherwise we might miss the initial emit * because creating the db2 can take a long time * on some storages. So not awaiting here would make the test - * timing dependend. + * timing dependent. */ await waitUntil(() => emitted.length === 1); diff --git a/test/unit/pouch-db-integration.test.ts b/test/unit/pouch-db-integration.test.ts index 922f3365ea3..f7af5535cb8 100644 --- a/test/unit/pouch-db-integration.test.ts +++ b/test/unit/pouch-db-integration.test.ts @@ -409,7 +409,7 @@ config.parallel('pouch-db-integration.test.js', () => { assert.strictEqual((x as any).length, 0); /** - * If this test ever throws, it means we can remove the hacky workarround in + * If this test ever throws, it means we can remove the hacky workaround in * src/plugins/in-memory.js * Where we add the emitFlag to 'doNotEmitSet' */ @@ -522,7 +522,7 @@ config.parallel('pouch-db-integration.test.js', () => { await AsyncTestUtil.wait(100); /** - * If this test ever throws, it means we can remove the hacky workarround in + * If this test ever throws, it means we can remove the hacky workaround in * src/plugins/in-memory.js * Where we add the emitFlag to 'doNotEmitSet' */ diff --git a/test/unit/query-builder.test.ts b/test/unit/query-builder.test.ts index b4c9cf8fd8b..b43b09342ec 100644 --- a/test/unit/query-builder.test.ts +++ b/test/unit/query-builder.test.ts @@ -36,7 +36,7 @@ config.parallel('query-builder.test.js', () => { const initialJson = builder.toJSON(); assert.deepStrictEqual(startQuery, initialJson.query); - // check builded json + // check built json const builder2 = createQueryBuilder(); builder2 .where('age').gt(4) @@ -44,8 +44,8 @@ config.parallel('query-builder.test.js', () => { .skip(startQuery.skip as number) .limit(startQuery.limit as number) .sort({ name: 'asc', lastname: 'desc' }); - const buildedJson = builder2.toJSON(); - assert.deepStrictEqual(startQuery, buildedJson.query); + const builtJson = builder2.toJSON(); + assert.deepStrictEqual(startQuery, builtJson.query); }); it('should work with only the selector', () => { const startQuery: MangoQuery = { @@ -63,13 +63,13 @@ config.parallel('query-builder.test.js', () => { const initialJson = builder.toJSON(); assert.deepStrictEqual(startQuery, initialJson.query); - // check builded json + // check built json const builder2 = createQueryBuilder(); builder2 .where('age').gt(5) .where('name').ne('alice'); - const buildedJson = builder2.toJSON(); - assert.deepStrictEqual(startQuery, buildedJson.query); + const builtJson = builder2.toJSON(); + assert.deepStrictEqual(startQuery, builtJson.query); }); it('should have path', () => { const path = 'foobar'; @@ -78,8 +78,8 @@ config.parallel('query-builder.test.js', () => { .where('age').gt(6) .where('name').ne('alice') .where(path); - const buildedJson = builder2.toJSON(); - assert.strictEqual(buildedJson.path, path); + const builtJson = builder2.toJSON(); + assert.strictEqual(builtJson.path, path); }); it('should work with big equal number', () => { const startQuery: MangoQuery = { @@ -95,14 +95,14 @@ config.parallel('query-builder.test.js', () => { const initialJson = builder.toJSON(); assert.deepStrictEqual(startQuery, initialJson.query); - // check builded json + // check built json const builder2 = createQueryBuilder(); builder2 .where('age') .gt(-9999999999999999999999999999) .sort('age'); - const buildedJson = builder2.toJSON(); - assert.deepStrictEqual(startQuery, buildedJson.query); + const builtJson = builder2.toJSON(); + assert.deepStrictEqual(startQuery, builtJson.query); }); }); diff --git a/test/unit/query-planner.test.ts b/test/unit/query-planner.test.ts index 9302803d425..425f376521f 100644 --- a/test/unit/query-planner.test.ts +++ b/test/unit/query-planner.test.ts @@ -298,7 +298,7 @@ config.parallel('query-planner.test.js', () => { ); assert.deepStrictEqual(queryPlan.index, ['age', 'firstName', 'passportId']); }); - it('should prefer the index that matches the sort order, if selector for both fiels is used', () => { + it('should prefer the index that matches the sort order, if selector for both fields is used', () => { const schema = getHumanSchemaWithIndexes([ ['firstName', 'age'], ['age', 'firstName'] diff --git a/test/unit/reactive-query.test.ts b/test/unit/reactive-query.test.ts index cc73365b7d8..b24790e7918 100644 --- a/test/unit/reactive-query.test.ts +++ b/test/unit/reactive-query.test.ts @@ -434,7 +434,7 @@ config.parallel('reactive-query.test.js', () => { assert.strictEqual(last.state.providers, 9); // on own collection, all events should have propagated - // TODO this fails for unkonwn reason on slow device + // TODO this fails for unknown reason on slow device // assert.strictEqual(emittedOwn.length, 10); sub.unsubscribe(); diff --git a/test/unit/replication-couchdb.test.ts b/test/unit/replication-couchdb.test.ts index 0890a387c49..450303f1b38 100644 --- a/test/unit/replication-couchdb.test.ts +++ b/test/unit/replication-couchdb.test.ts @@ -343,11 +343,11 @@ describe('replication-couchdb.test.ts', () => { remote: c2, waitForLeadership: false }); - const emited = []; - repState.change$.subscribe(cE => emited.push(cE)); - await AsyncTestUtil.waitUntil(() => emited.length >= 1); + const emitted = []; + repState.change$.subscribe(cE => emitted.push(cE)); + await AsyncTestUtil.waitUntil(() => emitted.length >= 1); await c2.insert(schemaObjects.human()); - await AsyncTestUtil.waitUntil(() => emited.length >= 2); + await AsyncTestUtil.waitUntil(() => emitted.length >= 2); c.database.destroy(); c2.database.destroy(); @@ -361,9 +361,9 @@ describe('replication-couchdb.test.ts', () => { remote: c2, waitForLeadership: false }); - const emited: any[] = []; - repState.active$.subscribe(cE => emited.push(cE)); - await AsyncTestUtil.waitUntil(() => emited.pop() === true); + const emitted: any[] = []; + repState.active$.subscribe(cE => emitted.push(cE)); + await AsyncTestUtil.waitUntil(() => emitted.pop() === true); c.database.destroy(); c2.database.destroy(); @@ -379,10 +379,10 @@ describe('replication-couchdb.test.ts', () => { remote: server.url }); - const emited: any[] = []; - repState.alive$.subscribe(cE => emited.push(cE)); + const emitted: any[] = []; + repState.alive$.subscribe(cE => emitted.push(cE)); - assert.strictEqual(emited[emited.length - 1], false); + assert.strictEqual(emitted[emitted.length - 1], false); c.database.destroy(); }); @@ -394,18 +394,18 @@ describe('replication-couchdb.test.ts', () => { remote: server.url }); - const emited: any[] = []; - repState.alive$.subscribe(cE => emited.push(cE)); - await AsyncTestUtil.waitUntil(() => !!emited[emited.length - 1]); + const emitted: any[] = []; + repState.alive$.subscribe(cE => emitted.push(cE)); + await AsyncTestUtil.waitUntil(() => !!emitted[emitted.length - 1]); - assert.strictEqual(emited[emited.length - 1], true); + assert.strictEqual(emitted[emitted.length - 1], true); server.close(true); const obj = schemaObjects.human(); await c.insert(obj); - await AsyncTestUtil.waitUntil(() => !emited[emited.length - 1]); - assert.strictEqual(emited[emited.length - 1], false); + await AsyncTestUtil.waitUntil(() => !emitted[emitted.length - 1]); + assert.strictEqual(emitted[emitted.length - 1], false); c.database.destroy(); }); @@ -440,10 +440,10 @@ describe('replication-couchdb.test.ts', () => { } }); - const emited: any[] = []; - const sub = repState.complete$.subscribe(ev => emited.push(ev)); + const emitted: any[] = []; + const sub = repState.complete$.subscribe(ev => emitted.push(ev)); await AsyncTestUtil.waitUntil(() => { - const lastEv = emited[emited.length - 1]; + const lastEv = emitted[emitted.length - 1]; let ret = false; try { if ( @@ -467,11 +467,11 @@ describe('replication-couchdb.test.ts', () => { remote: c2, waitForLeadership: false }); - const emitedDocs: any[] = []; - repState.docs$.subscribe(doc => emitedDocs.push(doc)); + const emittedDocs: any[] = []; + repState.docs$.subscribe(doc => emittedDocs.push(doc)); - await AsyncTestUtil.waitUntil(() => emitedDocs.length === 10); - emitedDocs.forEach(doc => assert.ok(doc.firstName)); + await AsyncTestUtil.waitUntil(() => emittedDocs.length === 10); + emittedDocs.forEach(doc => assert.ok(doc.firstName)); c.database.destroy(); c2.database.destroy(); diff --git a/test/unit/replication-graphql.test.ts b/test/unit/replication-graphql.test.ts index 5950896adaa..3fe1c1a5e73 100644 --- a/test/unit/replication-graphql.test.ts +++ b/test/unit/replication-graphql.test.ts @@ -217,7 +217,7 @@ describe('replication-graphql.test.ts', () => { const res = await server.setDocument(doc); /** - * Because no conflicts have arised, + * Because no conflicts have arose, * an empty array must be returned. */ assert.strictEqual( diff --git a/test/unit/replication-protocol.test.ts b/test/unit/replication-protocol.test.ts index d4223688c20..4f9bcf8b271 100644 --- a/test/unit/replication-protocol.test.ts +++ b/test/unit/replication-protocol.test.ts @@ -340,7 +340,7 @@ useParallel(testContext + ' (implementation: ' + config.storage.name + ')', () = }); await awaitRxStorageReplicationFirstInSync(replicationState); - // check inital doc + // check initial doc const docsOnFork = await runQuery(forkInstance); assert.strictEqual(docsOnFork.length, 1); @@ -376,7 +376,7 @@ useParallel(testContext + ' (implementation: ' + config.storage.name + ')', () = }); await awaitRxStorageReplicationFirstInSync(replicationState); - // check inital doc + // check initial doc const docsOnMaster = await runQuery(masterInstance); assert.strictEqual(docsOnMaster.length, 1); diff --git a/test/unit/replication.test.ts b/test/unit/replication.test.ts index 2c754de9d43..1ef6908b832 100644 --- a/test/unit/replication.test.ts +++ b/test/unit/replication.test.ts @@ -502,7 +502,7 @@ describe('replication.test.js', () => { /** * Because in the localCollection2 we do not insert any documents, * there must be less documents in the meta collection - * becaues it only contains the checkpoints. + * because it only contains the checkpoints. */ assert.strictEqual(docsInMetaAfter, 0); ensureNotFalsy(continueReplication)(); diff --git a/test/unit/rx-collection.test.ts b/test/unit/rx-collection.test.ts index 0adc8c3d3a8..4e7a2cdddfd 100644 --- a/test/unit/rx-collection.test.ts +++ b/test/unit/rx-collection.test.ts @@ -1470,7 +1470,7 @@ describe('rx-collection.test.ts', () => { assert.strictEqual(doc.firstName, 'foobar'); db.destroy(); }); - it('overwrite exisiting document', async () => { + it('overwrite existing document', async () => { const db = await createRxDatabase({ name: randomCouchString(10), storage: config.storage.getStorage(), @@ -2286,7 +2286,7 @@ describe('rx-collection.test.ts', () => { /** * Each emitted result must have a different result set * because findByIds$ must only emit when data has actually changed. - * We cannot just cound the updates.length here because some RxStorage implementations + * We cannot just count the updates.length here because some RxStorage implementations * might return multiple RxChangeEventBulks for a single bulkWrite() operation * or do additional writes. So we have to check for the revisions+docId strings. */ diff --git a/test/unit/rx-document.test.ts b/test/unit/rx-document.test.ts index cccefa84e22..c72979f0b58 100644 --- a/test/unit/rx-document.test.ts +++ b/test/unit/rx-document.test.ts @@ -542,7 +542,7 @@ describe('rx-document.test.js', () => { ); db.destroy(); }); - it('should still be useable if previous mutation function has thrown', async () => { + it('should still be usable if previous mutation function has thrown', async () => { const col = await humansCollection.create(1); const doc = await col.findOne().exec(true); diff --git a/test/unit/rx-schema.test.ts b/test/unit/rx-schema.test.ts index 9cfd5abd926..60901591be3 100644 --- a/test/unit/rx-schema.test.ts +++ b/test/unit/rx-schema.test.ts @@ -207,7 +207,7 @@ config.parallel('rx-schema.test.js', () => { it('break compoundIndex key is no string', () => { assert.throws(() => checkSchema(schemas.compoundIndexNoString), Error); }); - it('break on wrong formated compundIndex', () => { + it('break on wrong formatted compundIndex', () => { assert.throws(() => checkSchema(schemas.wrongCompoundFormat), Error); }); it('break when dots in fieldname', () => { diff --git a/test/unit/rx-storage-implementations.test.ts b/test/unit/rx-storage-implementations.test.ts index 12247222a66..b1284423ab6 100644 --- a/test/unit/rx-storage-implementations.test.ts +++ b/test/unit/rx-storage-implementations.test.ts @@ -197,7 +197,7 @@ config.parallel('rx-storage-implementations.test.ts (implementation: ' + config. await Promise.all(instances.map(instance => instance.close())); }); /** - * This test ensures that people do not accidentially set + * This test ensures that people do not accidentally set * keyCompression: true in the schema but then forget to use * the key-compression RxStorage wrapper. */ @@ -222,7 +222,7 @@ config.parallel('rx-storage-implementations.test.ts (implementation: ' + config. assert.ok(hasThrown); }); /** - * This test ensures that people do not accidentially set + * This test ensures that people do not accidentally set * encrypted stuff in the schema but then forget to use * the encryption RxStorage wrapper. */ @@ -1414,7 +1414,7 @@ config.parallel('rx-storage-implementations.test.ts (implementation: ' + config. }, indexes: [ /** - * RxDB wil always append the primaryKey to an index + * RxDB will always append the primaryKey to an index * if the primaryKey was not used in the index before. * This ensures we have a deterministic sorting when querying documents * from that index. @@ -2025,7 +2025,7 @@ config.parallel('rx-storage-implementations.test.ts (implementation: ' + config. storageInstance.close(); }); - it('should be able to correctly itterate over the checkpoints', async () => { + it('should be able to correctly iterate over the checkpoints', async () => { const storageInstance = await config.storage.getStorage().createStorageInstance({ databaseInstanceToken: randomCouchString(10), databaseName: randomCouchString(12), diff --git a/test/unit/rx-storage-lokijs.test.ts b/test/unit/rx-storage-lokijs.test.ts index dad8aebd23a..96e7c1b9e9c 100644 --- a/test/unit/rx-storage-lokijs.test.ts +++ b/test/unit/rx-storage-lokijs.test.ts @@ -306,7 +306,7 @@ describe('rx-storage-lokijs.test.js', () => { * When the leading tab is set to cpu throttling mode by the browsers, * running setTimeout takes way longer then the given time. * Because LokiJS is in-memory, we elect a leader and all requests go to that leader. - * This means when the leader is cpu-throttled, we have a realy slow response. + * This means when the leader is cpu-throttled, we have a really slow response. * * So in this test we assure that the internals of the LokiJS RxStorage * do not use any setTimeout call.