diff --git a/src/ActivitiesAdapter.test.js b/src/ActivitiesAdapter.test.js index fa3a959..05d01b3 100644 --- a/src/ActivitiesAdapter.test.js +++ b/src/ActivitiesAdapter.test.js @@ -9,6 +9,10 @@ describe('Activities Adapter Interface', () => { activitiesAdapter = new ActivitiesAdapter(); }); + afterEach(() => { + activitiesAdapter = null; + }); + test('getActivity() returns an observable', () => { expect(isObservable(activitiesAdapter.getActivity())).toBeTruthy(); }); @@ -22,8 +26,4 @@ describe('Activities Adapter Interface', () => { } ); }); - - afterEach(() => { - activitiesAdapter = null; - }); }); diff --git a/src/MeetingsAdapter.test.js b/src/MeetingsAdapter.test.js index ae8f831..a9548c5 100644 --- a/src/MeetingsAdapter.test.js +++ b/src/MeetingsAdapter.test.js @@ -9,6 +9,10 @@ describe('Meetings Adapter Interface', () => { meetingsAdapter = new MeetingsAdapter(); }); + afterEach(() => { + meetingsAdapter = null; + }); + test('getMeeting() returns an observable', () => { expect(isObservable(meetingsAdapter.getMeeting())).toBeTruthy(); }); @@ -26,8 +30,4 @@ describe('Meetings Adapter Interface', () => { test('meetingControls property exists', () => { expect(meetingsAdapter).toHaveProperty('meetingControls'); }); - - afterEach(() => { - meetingsAdapter = null; - }); }); diff --git a/src/PeopleAdapter.test.js b/src/PeopleAdapter.test.js index 5de40d4..d449ac6 100644 --- a/src/PeopleAdapter.test.js +++ b/src/PeopleAdapter.test.js @@ -9,6 +9,10 @@ describe('People Adapter Interface', () => { peopleAdapter = new PeopleAdapter(); }); + afterEach(() => { + peopleAdapter = null; + }); + test('getPerson() returns an observable', () => { expect(isObservable(peopleAdapter.getPerson())).toBeTruthy(); }); @@ -22,8 +26,4 @@ describe('People Adapter Interface', () => { } ); }); - - afterEach(() => { - peopleAdapter = null; - }); }); diff --git a/src/RoomsAdapter.test.js b/src/RoomsAdapter.test.js index 3d83dbf..4757203 100644 --- a/src/RoomsAdapter.test.js +++ b/src/RoomsAdapter.test.js @@ -9,6 +9,10 @@ describe('Rooms Adapter Interface', () => { roomsAdapter = new RoomsAdapter(); }); + afterEach(() => { + roomsAdapter = null; + }); + test('getRoom() returns an observable', () => { expect(isObservable(roomsAdapter.getRoom())).toBeTruthy(); }); @@ -57,8 +61,4 @@ describe('Rooms Adapter Interface', () => { // eslint-disable-next-line no-empty } catch (error) {} }); - - afterEach(() => { - roomsAdapter = null; - }); }); diff --git a/src/WebexAdapter.test.js b/src/WebexAdapter.test.js index 3cb511e..353cdc6 100644 --- a/src/WebexAdapter.test.js +++ b/src/WebexAdapter.test.js @@ -8,11 +8,11 @@ describe('Webex Adapter Interface', () => { webexAdapter = new WebexAdapter(datasource); }); - test('WebexAdapter stores the data source', () => { - expect(webexAdapter.datasource).toBe(datasource); - }); - afterEach(() => { webexAdapter = null; }); + + test('WebexAdapter stores the data source', () => { + expect(webexAdapter.datasource).toBe(datasource); + }); });