mirror of
https://github.com/appy-one/acebase.git
synced 2026-05-25 22:01:21 -06:00
fix case sensitive spec typos #104
This commit is contained in:
parent
ef6c3809cf
commit
7a193dd098
2 changed files with 6 additions and 8 deletions
4
dist/browser.js
vendored
4
dist/browser.js
vendored
|
|
@ -337,9 +337,7 @@ const fingerprint_1 = require("./fingerprint");
|
|||
const pad_1 = require("./pad");
|
||||
var c = 0, blockSize = 4, base = 36, discreteValues = Math.pow(base, blockSize);
|
||||
function randomBlock() {
|
||||
return (0, pad_1.default)((Math.random() *
|
||||
discreteValues << 0)
|
||||
.toString(base), blockSize);
|
||||
return (0, pad_1.default)((Math.random() * discreteValues << 0).toString(base), blockSize);
|
||||
}
|
||||
function safeCounter() {
|
||||
c = c < discreteValues ? c : 0;
|
||||
|
|
|
|||
|
|
@ -94,12 +94,12 @@ describe('Keys', () => {
|
|||
await expectAsync(p).toBeResolved();
|
||||
});
|
||||
|
||||
it('should be case insensitive', async () => {
|
||||
it('should be case sensitive', async () => {
|
||||
|
||||
const lowercase = { key: 'caseinsensitive', value: 'the key has lowercase chars' };
|
||||
const camelcase = { key: 'caseInsensitive', value: 'the key has camelCase chars' };
|
||||
const pascalcase = { key: 'CaseInsensitive', value: 'the key has PascalCase chars' };
|
||||
const uppercase = { key: 'CASEINSENSITIVE', value: 'the key has UPPERCASE chars' };
|
||||
const lowercase = { key: 'casesensitive', value: 'the key has lowercase chars' };
|
||||
const camelcase = { key: 'caseSensitive', value: 'the key has camelCase chars' };
|
||||
const pascalcase = { key: 'CaseSensitive', value: 'the key has PascalCase chars' };
|
||||
const uppercase = { key: 'CASESENSITIVE', value: 'the key has UPPERCASE chars' };
|
||||
|
||||
await db.ref(lowercase.key).set(lowercase.value);
|
||||
await db.ref(camelcase.key).set(camelcase.value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue