Skip to content

Commit

Permalink
Update tests to validate username
Browse files Browse the repository at this point in the history
  • Loading branch information
fdelavega committed Jul 4, 2019
1 parent 3d4523f commit a1ccf41
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/lib/utils.js
Expand Up @@ -44,7 +44,10 @@ describe('Utils', function() {
id: '100',
name: 'Purchaser'
}
]
],
_json: {
username: 'username'
}
};

// This function should modify headers
Expand All @@ -55,6 +58,7 @@ describe('Utils', function() {
expect(headers['X-Display-Name']).toBe(userInfo.displayName);
expect(headers['X-Roles']).toBe('provider,seller,');
expect(headers['X-Actor']).toBe(userInfo.id);
expect(headers['X-Ext-Name']).toBe('username');
});
});

Expand Down

0 comments on commit a1ccf41

Please sign in to comment.