You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
add missing fields support to schema (v4) (#2789)
This commit is contained in:
@@ -441,6 +441,36 @@ describe('CREATE', () => {
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe('Missing Values', () => {
|
||||
it('with INDEXEMPTY', () => {
|
||||
assert.deepEqual(
|
||||
transformArguments('index', {
|
||||
field: {
|
||||
type: SchemaFieldTypes.TEXT,
|
||||
MISSING_VALUES: {
|
||||
INDEXEMPTY: true
|
||||
}
|
||||
}
|
||||
}),
|
||||
['FT.CREATE', 'index', 'SCHEMA', 'field', 'TEXT', 'INDEXEMPTY']
|
||||
);
|
||||
});
|
||||
|
||||
it('with INDEXMISSING', () => {
|
||||
assert.deepEqual(
|
||||
transformArguments('index', {
|
||||
field: {
|
||||
type: SchemaFieldTypes.TEXT,
|
||||
MISSING_VALUES: {
|
||||
INDEXMISSING: true
|
||||
}
|
||||
}
|
||||
}),
|
||||
['FT.CREATE', 'index', 'SCHEMA', 'field', 'TEXT', 'INDEXMISSING']
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
testUtils.testWithClient('client.ft.create', async client => {
|
||||
|
Reference in New Issue
Block a user