Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit 8c5a556

Browse files
committed
fix linting errors
1 parent 8f61378 commit 8c5a556

File tree

4 files changed

+35
-35
lines changed

4 files changed

+35
-35
lines changed

test/unit/specs/dashboard/cd-dashboard-news.spec.js

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ describe('Dashboard children component', () => {
2727
// ARRANGE
2828
const vm = vueUnitHelper(DashboardNewsComponentWithMocks);
2929
vm.news = [
30-
{ date: '2018-08-09T10:00:00.000Z', link: 'blah1', title: { rendered: 'blah1' } },
31-
{ date: '2018-08-10T10:00:00.000Z', link: 'blah2', title: { rendered: 'blah2' } },
32-
{ date: '2018-08-11T10:00:00.000Z', link: 'blah3', title: { rendered: 'blah3' } },
33-
{ date: '2018-08-12T10:00:00.000Z', link: 'blah4', title: { rendered: 'blah4' } },
34-
{ date: '2018-08-13T10:00:00.000Z', link: 'blah5', title: { rendered: 'blah5' } },
35-
{ date: '2018-08-14T10:00:00.000Z', link: 'blah6', title: { rendered: 'blah6' } },
36-
{ date: '2018-08-15T10:00:00.000Z', link: 'blah7', title: { rendered: 'blah7' } }];
30+
{ date: '2018-08-09T10:00:00.000Z', link: 'blah1', title: { rendered: 'blah1' } },
31+
{ date: '2018-08-10T10:00:00.000Z', link: 'blah2', title: { rendered: 'blah2' } },
32+
{ date: '2018-08-11T10:00:00.000Z', link: 'blah3', title: { rendered: 'blah3' } },
33+
{ date: '2018-08-12T10:00:00.000Z', link: 'blah4', title: { rendered: 'blah4' } },
34+
{ date: '2018-08-13T10:00:00.000Z', link: 'blah5', title: { rendered: 'blah5' } },
35+
{ date: '2018-08-14T10:00:00.000Z', link: 'blah6', title: { rendered: 'blah6' } },
36+
{ date: '2018-08-15T10:00:00.000Z', link: 'blah7', title: { rendered: 'blah7' } }];
3737

3838
vm.sortPostsByDate = sinon.stub().returns([
3939
{ type: 'News', date: moment('2018-08-15T10:00:00.000Z'), formattedDate: '15/08/2018', link: 'blah7', title: 'blah7' },
@@ -67,23 +67,23 @@ describe('Dashboard children component', () => {
6767
it('should return a formatted array of news posts', () => {
6868
// ARRANGE
6969
const mockFormattedNews = [
70-
{ type: 'News', date: moment('2018-08-09T10:00:00.000Z'), link: 'blah1', title: 'blah1' },
71-
{ type: 'News', date: moment('2018-08-10T10:00:00.000Z'), link: 'blah2', title: 'blah2' },
72-
{ type: 'News', date: moment('2018-08-11T10:00:00.000Z'), link: 'blah3', title: 'blah3' },
73-
{ type: 'News', date: moment('2018-08-12T10:00:00.000Z'), link: 'blah4', title: 'blah4' },
74-
{ type: 'News', date: moment('2018-08-13T10:00:00.000Z'), link: 'blah5', title: 'blah5' },
75-
{ type: 'News', date: moment('2018-08-14T10:00:00.000Z'), link: 'blah6', title: 'blah6' },
76-
{ type: 'News', date: moment('2018-08-15T10:00:00.000Z'), link: 'blah7', title: 'blah7' }];
70+
{ type: 'News', date: moment('2018-08-09T10:00:00.000Z'), link: 'blah1', title: 'blah1' },
71+
{ type: 'News', date: moment('2018-08-10T10:00:00.000Z'), link: 'blah2', title: 'blah2' },
72+
{ type: 'News', date: moment('2018-08-11T10:00:00.000Z'), link: 'blah3', title: 'blah3' },
73+
{ type: 'News', date: moment('2018-08-12T10:00:00.000Z'), link: 'blah4', title: 'blah4' },
74+
{ type: 'News', date: moment('2018-08-13T10:00:00.000Z'), link: 'blah5', title: 'blah5' },
75+
{ type: 'News', date: moment('2018-08-14T10:00:00.000Z'), link: 'blah6', title: 'blah6' },
76+
{ type: 'News', date: moment('2018-08-15T10:00:00.000Z'), link: 'blah7', title: 'blah7' }];
7777

7878
const vm = vueUnitHelper(DashboardNewsComponentWithMocks);
7979
vm.news = [
80-
{ date: '2018-08-09T10:00:00.000Z', link: 'blah1', title: { rendered: 'blah1' } },
81-
{ date: '2018-08-10T10:00:00.000Z', link: 'blah2', title: { rendered: 'blah2' } },
82-
{ date: '2018-08-11T10:00:00.000Z', link: 'blah3', title: { rendered: 'blah3' } },
83-
{ date: '2018-08-12T10:00:00.000Z', link: 'blah4', title: { rendered: 'blah4' } },
84-
{ date: '2018-08-13T10:00:00.000Z', link: 'blah5', title: { rendered: 'blah5' } },
85-
{ date: '2018-08-14T10:00:00.000Z', link: 'blah6', title: { rendered: 'blah6' } },
86-
{ date: '2018-08-15T10:00:00.000Z', link: 'blah7', title: { rendered: 'blah7' } }];
80+
{ date: '2018-08-09T10:00:00.000Z', link: 'blah1', title: { rendered: 'blah1' } },
81+
{ date: '2018-08-10T10:00:00.000Z', link: 'blah2', title: { rendered: 'blah2' } },
82+
{ date: '2018-08-11T10:00:00.000Z', link: 'blah3', title: { rendered: 'blah3' } },
83+
{ date: '2018-08-12T10:00:00.000Z', link: 'blah4', title: { rendered: 'blah4' } },
84+
{ date: '2018-08-13T10:00:00.000Z', link: 'blah5', title: { rendered: 'blah5' } },
85+
{ date: '2018-08-14T10:00:00.000Z', link: 'blah6', title: { rendered: 'blah6' } },
86+
{ date: '2018-08-15T10:00:00.000Z', link: 'blah7', title: { rendered: 'blah7' } }];
8787

8888
// ASSERT
8989
expect(vm.formattedNews).to.deep.equal(mockFormattedNews);
@@ -117,9 +117,9 @@ describe('Dashboard children component', () => {
117117
it('should load the latest news', async () => {
118118
// ARRANGE
119119
const mockNews = [
120-
{ date: '2018-08-09T', link: 'blah1', title: { rendered: 'blah1' } },
121-
{ date: '2018-08-10T', link: 'blah2', title: { rendered: 'blah2' } },
122-
{ date: '2018-08-11T', link: 'blah3', title: { rendered: 'blah3' } }];
120+
{ date: '2018-08-09T', link: 'blah1', title: { rendered: 'blah1' } },
121+
{ date: '2018-08-10T', link: 'blah2', title: { rendered: 'blah2' } },
122+
{ date: '2018-08-11T', link: 'blah3', title: { rendered: 'blah3' } }];
123123
MockUpdatesService.loadNews.resolves({ body: mockNews });
124124
const vm = vueUnitHelper(DashboardNewsComponentWithMocks);
125125

@@ -135,13 +135,13 @@ describe('Dashboard children component', () => {
135135
it('should sort the list of posts by date', async () => {
136136
// ARRANGE
137137
const posts = [
138-
{ type: 'News', date: moment('2018-08-10T10:00:00.000Z'), link: 'blah2', title: 'blah2' },
139-
{ type: 'News', date: moment('2018-08-12T10:00:00.000Z'), link: 'blah1', title: 'blah1' },
140-
{ type: 'News', date: moment('2018-08-15T10:00:00.000Z'), link: 'blah3', title: 'blah3' }];
138+
{ type: 'News', date: moment('2018-08-10T10:00:00.000Z'), link: 'blah2', title: 'blah2' },
139+
{ type: 'News', date: moment('2018-08-12T10:00:00.000Z'), link: 'blah1', title: 'blah1' },
140+
{ type: 'News', date: moment('2018-08-15T10:00:00.000Z'), link: 'blah3', title: 'blah3' }];
141141
const sortedPosts = [
142-
{ formattedDate: '15/08/2018', type: 'News', date: moment('2018-08-15T10:00:00.000Z').utc(), link: 'blah3', title: 'blah3' },
143-
{ formattedDate: '12/08/2018', type: 'News', date: moment('2018-08-12T10:00:00.000Z').utc(), link: 'blah1', title: 'blah1' },
144-
{ formattedDate: '10/08/2018', type: 'News', date: moment('2018-08-10T10:00:00.000Z').utc(), link: 'blah2', title: 'blah2' }];
142+
{ formattedDate: '15/08/2018', type: 'News', date: moment('2018-08-15T10:00:00.000Z').utc(), link: 'blah3', title: 'blah3' },
143+
{ formattedDate: '12/08/2018', type: 'News', date: moment('2018-08-12T10:00:00.000Z').utc(), link: 'blah1', title: 'blah1' },
144+
{ formattedDate: '10/08/2018', type: 'News', date: moment('2018-08-10T10:00:00.000Z').utc(), link: 'blah2', title: 'blah2' }];
145145

146146
const vm = vueUnitHelper(DashboardNewsComponentWithMocks);
147147

test/unit/specs/dojos/service.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ describe('Dojos Service', () => {
194194
});
195195
describe('membership:loadPending', () => {
196196
it('should transform a request to join into a membership', async () => {
197-
// ARRANGE
197+
// ARRANGE
198198
const dojoId = 'd1';
199199
const requestId = 'rq1';
200200

test/unit/specs/events/order/cd-event-sessions.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ describe('Event sessions component', () => {
436436
vm.validPhone = true;
437437
vm.profile = { id: 'user1' };
438438
MockUserService.userProfileData.withArgs(vm.user.id)
439-
.returns(Promise.resolve({ id: 'user1', phone: '' }));
439+
.returns(Promise.resolve({ id: 'user1', phone: '' }));
440440
vm.phone = '+353123456789';
441441

442442
// ACT

test/unit/specs/users/cdf-manage.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ describe('CDFManageUsers', () => {
185185
});
186186

187187
it('should register an error on retrieval of data', async () => {
188-
// ARRANGE
188+
// ARRANGE
189189
const vm = vueUnitHelper(ManageUsersComponentWithMocks);
190190
vm.errors = {
191191
clear: sinon.stub(),
@@ -206,7 +206,7 @@ describe('CDFManageUsers', () => {
206206
});
207207
describe('deleteUser()', () => {
208208
it('should hardDelete', async () => {
209-
// ARRANGE
209+
// ARRANGE
210210
const vm = vueUnitHelper(ManageUsersComponentWithMocks);
211211
vm.user = {
212212
id: 'u1',
@@ -238,7 +238,7 @@ describe('CDFManageUsers', () => {
238238
expect(vm.deleted).to.be.true;
239239
});
240240
it('should register an error on retrieval of data', async () => {
241-
// ARRANGE
241+
// ARRANGE
242242
const vm = vueUnitHelper(ManageUsersComponentWithMocks);
243243
vm.errors = {
244244
clear: sinon.stub(),

0 commit comments

Comments
 (0)