Fixed test broken by part sync change (#7195)

This commit is contained in:
Keith Holliday
2016-05-12 12:55:34 -05:00
committed by Matteo Pagliazzi
parent bb1cb3397e
commit ca6dca5fd0
4 changed files with 13 additions and 11 deletions

View File

@@ -61,7 +61,7 @@ describe("Party Controller", function() {
context('party has 1 member', function() {
it('awards no new achievements', function() {
groupResponse = {data: {data: {_id: "test", type: "party", memberCount: 1}}};
groupResponse = {_id: "test", type: "party", memberCount: 1};
initializeControllerWithStubbedState();
@@ -73,7 +73,7 @@ describe("Party Controller", function() {
context('party has 2 members', function() {
context('user does not have "Party Up" achievement', function() {
it('awards "Party Up" achievement', function(done) {
groupResponse = {data: {data: {_id: "test", type: "party", memberCount: 2}}};
groupResponse = {_id: "test", type: "party", memberCount: 2};
initializeControllerWithStubbedState();
@@ -93,7 +93,7 @@ describe("Party Controller", function() {
context('party has 4 members', function() {
beforeEach(function() {
groupResponse = {data: {data: {_id: "test", type: "party", memberCount: 4}}};
groupResponse = {_id: "test", type: "party", memberCount: 4};
});
context('user has "Party Up" but not "Party On" achievement', function() {