Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Save the changes on the user store check
Browse files Browse the repository at this point in the history
  • Loading branch information
rememberlenny committed Jul 28, 2017
1 parent 02106fb commit b98bf11
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions static_src/test/unit/stores/user_store.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,12 +684,13 @@ describe('UserStore', function () {

describe('getAllInOrgAndNotSpace()', function() {
it('should find all users that are in an org, without the space users', function() {
var spaceGuid = 'asdfa';
var testUser = { guid: 'adfzxcv', roles: { [spaceGuid]: [ 'space_user'] } };
var spaceGuid = 'sdfadf';
var orgGuid = 'asdfa';
var testUser = { guid: 'adfzxcv', roles: { [orgGuid]: [ 'org_user'] } };

UserStore.push(testUser);

let actual = UserStore.getAllInOrg(spaceGuid);
let actual = UserStore.getAllInOrgAndNotSpace(spaceGuid);

expect(actual[0]).toEqual(testUser);
});
Expand Down

0 comments on commit b98bf11

Please sign in to comment.