Skip to content

Commit

Permalink
chore: update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Aug 21, 2023
1 parent 02aff66 commit b8dde95
Show file tree
Hide file tree
Showing 8 changed files with 207 additions and 169 deletions.
2 changes: 1 addition & 1 deletion src/commands/command.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export async function command(_subcommand, ...args) {
'GETKEYSANDFLAGS <full-command>',
' Return the keys and the access flags from a full Redis command.',
'HELP',
' Prints this help.',
' Print this help.',
]
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function config(_subcommand, ...args) {
'REWRITE',
' Rewrite the configuration file.',
'HELP',
' Prints this help.',
' Print this help.',
]
}

Expand Down
6 changes: 3 additions & 3 deletions src/commands/object.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ function encoding(key) {
if ([...val].every(n => n === parseInt(n, 10).toString())) {
return 'intset'
}
return 'hashtable'
return 'listpack'
}

if (val instanceof Map) {
return 'listpack'
}

if (Array.isArray(val)) {
return 'quicklist'
return 'listpack'
}

if (typeof val.valueOf() === 'string') {
Expand Down Expand Up @@ -50,7 +50,7 @@ export function object(_subcommand, key, ...args) {
' Return the number of references of the value associated with the specified',
' <key>.',
'HELP',
' Prints this help.',
' Print this help.',
]
}

Expand Down
2 changes: 1 addition & 1 deletion src/commands/xread.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function xread(option, ...args) {

if (rest.length % 2 !== 0) {
throw new Error(
"ERR Unbalanced XREAD list of streams: for each stream key an ID or '$' must be specified."
"ERR Unbalanced 'xread' list of streams: for each stream key an ID or '$' must be specified."
)
}

Expand Down
Loading

0 comments on commit b8dde95

Please sign in to comment.