You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
26 lines
686 B
TypeScript
26 lines
686 B
TypeScript
import { strict as assert } from 'assert';
|
|
import { transformArguments } from './AUTH';
|
|
|
|
describe('AUTH', () => {
|
|
describe('transformArguments', () => {
|
|
it('password only', () => {
|
|
assert.deepEqual(
|
|
transformArguments({
|
|
password: 'password'
|
|
}),
|
|
['AUTH', 'password']
|
|
);
|
|
});
|
|
|
|
it('username & password', () => {
|
|
assert.deepEqual(
|
|
transformArguments({
|
|
username: 'username',
|
|
password: 'password'
|
|
}),
|
|
['AUTH', 'username', 'password']
|
|
);
|
|
});
|
|
});
|
|
});
|