Skip to content

Commit

Permalink
feat: update user and organization metadata
Browse files Browse the repository at this point in the history
* test fix -> sentinel response order
  • Loading branch information
pajgo committed Oct 22, 2019
1 parent 5d1c940 commit fdfbba6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/suites/utils/metadata/redis/update-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@ describe('#updateMetadata LUA script', function updateMetadataLuaSuite() {
it('sets meta', async () => {
const redisUserMetaKey = `${id}:testMeta:${audience}`;
const userDataAudience = await this.users.redis.hgetall(redisUserMetaKey);
expect(userDataAudience).to.be.deep.equal({ x: '10', c: '"cval"', b: '12' });
expect(userDataAudience).to.include({ x: '10', c: '"cval"', b: '12' });

const userDataExtraAudience = await this.users.redis.hgetall(`${id}:testMeta:*.extra`);
expect(userDataExtraAudience).to.be.deep.equal({ x: '20', c: '"xval"', b: '22' });
expect(userDataExtraAudience).to.include({ x: '20', c: '"xval"', b: '22' });
});

it('tracks audienceList', async () => {
const audiencesList = await this.users.redis.smembers(`${id}:audience`);
expect(audiencesList).to.be.deep.equal(['*.localhost', '*.extra']);
expect(audiencesList).to.include.members(['*.localhost', '*.extra']);
});

it('tracks audienceList after remove', async () => {
Expand Down

0 comments on commit fdfbba6

Please sign in to comment.