Skip to content

Commit

Permalink
fix(UnitTest): copy an object immutably
Browse files Browse the repository at this point in the history
  • Loading branch information
akoushke committed Sep 11, 2019
1 parent 921fad3 commit 0672dfd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/WebexActivity/WebexActivity.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('Webex Activity component', () => {
let activityID, personID, adapters, newActivities;

beforeEach(() => {
newActivities = {};
newActivities = {...activities}; // Reset newActivities
[activityID] = Object.keys(activities);
[personID] = Object.keys(people);
adapters = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ describe('Webex Activity Stream component', () => {
let roomID, newRooms, roomsAdapter;

beforeEach(() => {
newRooms = {...rooms}; // Reset newRooms
[roomID] = Object.keys(rooms);
newRooms = rooms;
roomsAdapter = new RoomsJSONAdapter(rooms);
});

Expand Down
2 changes: 1 addition & 1 deletion src/components/WebexAvatar/WebexAvatar.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ describe('Webex Avatar component', () => {
let personID, newPeople, peopleAdapter;

beforeEach(() => {
newPeople = {...people}; // Reset newPeople
[personID] = Object.keys(people);
newPeople = people;
peopleAdapter = new PeopleJSONAdapter(people);
});

Expand Down

0 comments on commit 0672dfd

Please sign in to comment.