2018-09-03 03:49:52 -04:00
|
|
|
import MockAdapter from 'axios-mock-adapter';
|
|
|
|
import axios from '~/lib/utils/axios_utils';
|
|
|
|
import {
|
|
|
|
setJobEndpoint,
|
2018-10-17 06:34:19 -04:00
|
|
|
setTraceOptions,
|
2018-09-03 03:49:52 -04:00
|
|
|
clearEtagPoll,
|
|
|
|
stopPolling,
|
|
|
|
requestJob,
|
|
|
|
fetchJob,
|
|
|
|
receiveJobSuccess,
|
|
|
|
receiveJobError,
|
|
|
|
scrollTop,
|
|
|
|
scrollBottom,
|
|
|
|
requestTrace,
|
|
|
|
fetchTrace,
|
|
|
|
stopPollingTrace,
|
|
|
|
receiveTraceSuccess,
|
|
|
|
receiveTraceError,
|
|
|
|
requestStages,
|
|
|
|
fetchStages,
|
|
|
|
receiveStagesSuccess,
|
|
|
|
receiveStagesError,
|
|
|
|
requestJobsForStage,
|
|
|
|
fetchJobsForStage,
|
|
|
|
receiveJobsForStageSuccess,
|
|
|
|
receiveJobsForStageError,
|
2018-10-17 06:34:19 -04:00
|
|
|
hideSidebar,
|
|
|
|
showSidebar,
|
|
|
|
toggleSidebar,
|
2018-09-03 03:49:52 -04:00
|
|
|
} from '~/jobs/store/actions';
|
|
|
|
import state from '~/jobs/store/state';
|
|
|
|
import * as types from '~/jobs/store/mutation_types';
|
|
|
|
import testAction from 'spec/helpers/vuex_action_helper';
|
|
|
|
import { TEST_HOST } from 'spec/test_constants';
|
|
|
|
|
|
|
|
describe('Job State actions', () => {
|
|
|
|
let mockedState;
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
mockedState = state();
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('setJobEndpoint', () => {
|
|
|
|
it('should commit SET_JOB_ENDPOINT mutation', done => {
|
|
|
|
testAction(
|
|
|
|
setJobEndpoint,
|
|
|
|
'job/872324.json',
|
|
|
|
mockedState,
|
|
|
|
[{ type: types.SET_JOB_ENDPOINT, payload: 'job/872324.json' }],
|
|
|
|
[],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2018-10-17 06:34:19 -04:00
|
|
|
describe('setTraceOptions', () => {
|
|
|
|
it('should commit SET_TRACE_OPTIONS mutation', done => {
|
2018-09-03 03:49:52 -04:00
|
|
|
testAction(
|
2018-10-17 06:34:19 -04:00
|
|
|
setTraceOptions,
|
|
|
|
{ pagePath: 'job/872324/trace.json' },
|
2018-09-03 03:49:52 -04:00
|
|
|
mockedState,
|
2018-10-17 06:34:19 -04:00
|
|
|
[{ type: types.SET_TRACE_OPTIONS, payload: { pagePath: 'job/872324/trace.json' } }],
|
2018-09-03 03:49:52 -04:00
|
|
|
[],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2018-10-17 06:34:19 -04:00
|
|
|
describe('hideSidebar', () => {
|
|
|
|
it('should commit HIDE_SIDEBAR mutation', done => {
|
2018-09-03 03:49:52 -04:00
|
|
|
testAction(
|
2018-10-17 06:34:19 -04:00
|
|
|
hideSidebar,
|
|
|
|
null,
|
2018-09-03 03:49:52 -04:00
|
|
|
mockedState,
|
2018-10-17 06:34:19 -04:00
|
|
|
[{ type: types.HIDE_SIDEBAR }],
|
2018-09-03 03:49:52 -04:00
|
|
|
[],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2018-10-17 06:34:19 -04:00
|
|
|
describe('showSidebar', () => {
|
|
|
|
it('should commit HIDE_SIDEBAR mutation', done => {
|
2018-09-03 03:49:52 -04:00
|
|
|
testAction(
|
2018-10-17 06:34:19 -04:00
|
|
|
showSidebar,
|
|
|
|
null,
|
2018-09-03 03:49:52 -04:00
|
|
|
mockedState,
|
2018-10-17 06:34:19 -04:00
|
|
|
[{ type: types.SHOW_SIDEBAR }],
|
2018-09-03 03:49:52 -04:00
|
|
|
[],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2018-10-17 06:34:19 -04:00
|
|
|
describe('toggleSidebar', () => {
|
|
|
|
describe('when isSidebarOpen is true', () => {
|
|
|
|
it('should dispatch hideSidebar', done => {
|
|
|
|
testAction(
|
|
|
|
toggleSidebar,
|
|
|
|
null,
|
|
|
|
mockedState,
|
|
|
|
[],
|
|
|
|
[{ type: 'hideSidebar' }],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('when isSidebarOpen is false', () => {
|
|
|
|
it('should dispatch showSidebar', done => {
|
|
|
|
mockedState.isSidebarOpen = false;
|
|
|
|
|
|
|
|
testAction(
|
|
|
|
toggleSidebar,
|
|
|
|
null,
|
|
|
|
mockedState,
|
|
|
|
[],
|
|
|
|
[{ type: 'showSidebar' }],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
2018-09-03 03:49:52 -04:00
|
|
|
describe('requestJob', () => {
|
|
|
|
it('should commit REQUEST_JOB mutation', done => {
|
|
|
|
testAction(requestJob, null, mockedState, [{ type: types.REQUEST_JOB }], [], done);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('fetchJob', () => {
|
|
|
|
let mock;
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
mockedState.jobEndpoint = `${TEST_HOST}/endpoint.json`;
|
|
|
|
mock = new MockAdapter(axios);
|
|
|
|
});
|
|
|
|
|
|
|
|
afterEach(() => {
|
|
|
|
mock.restore();
|
|
|
|
stopPolling();
|
|
|
|
clearEtagPoll();
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('success', () => {
|
|
|
|
it('dispatches requestJob and receiveJobSuccess ', done => {
|
|
|
|
mock.onGet(`${TEST_HOST}/endpoint.json`).replyOnce(200, { id: 121212, name: 'karma' });
|
|
|
|
|
|
|
|
testAction(
|
|
|
|
fetchJob,
|
|
|
|
null,
|
|
|
|
mockedState,
|
|
|
|
[],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
type: 'requestJob',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
payload: { id: 121212, name: 'karma' },
|
|
|
|
type: 'receiveJobSuccess',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('error', () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
mock.onGet(`${TEST_HOST}/endpoint.json`).reply(500);
|
|
|
|
});
|
|
|
|
|
|
|
|
it('dispatches requestJob and receiveJobError ', done => {
|
|
|
|
testAction(
|
|
|
|
fetchJob,
|
|
|
|
null,
|
|
|
|
mockedState,
|
|
|
|
[],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
type: 'requestJob',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'receiveJobError',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('receiveJobSuccess', () => {
|
|
|
|
it('should commit RECEIVE_JOB_SUCCESS mutation', done => {
|
|
|
|
testAction(
|
|
|
|
receiveJobSuccess,
|
|
|
|
{ id: 121232132 },
|
|
|
|
mockedState,
|
|
|
|
[{ type: types.RECEIVE_JOB_SUCCESS, payload: { id: 121232132 } }],
|
|
|
|
[],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('receiveJobError', () => {
|
|
|
|
it('should commit RECEIVE_JOB_ERROR mutation', done => {
|
|
|
|
testAction(receiveJobError, null, mockedState, [{ type: types.RECEIVE_JOB_ERROR }], [], done);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('scrollTop', () => {
|
2018-10-17 06:34:19 -04:00
|
|
|
it('should dispatch toggleScrollButtons action', done => {
|
|
|
|
testAction(scrollTop, null, mockedState, [], [{ type: 'toggleScrollButtons' }], done);
|
2018-09-03 03:49:52 -04:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('scrollBottom', () => {
|
2018-10-17 06:34:19 -04:00
|
|
|
it('should dispatch toggleScrollButtons action', done => {
|
|
|
|
testAction(scrollBottom, null, mockedState, [], [{ type: 'toggleScrollButtons' }], done);
|
2018-09-03 03:49:52 -04:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('requestTrace', () => {
|
|
|
|
it('should commit REQUEST_TRACE mutation', done => {
|
|
|
|
testAction(requestTrace, null, mockedState, [{ type: types.REQUEST_TRACE }], [], done);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('fetchTrace', () => {
|
|
|
|
let mock;
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
mockedState.traceEndpoint = `${TEST_HOST}/endpoint`;
|
|
|
|
mock = new MockAdapter(axios);
|
|
|
|
});
|
|
|
|
|
|
|
|
afterEach(() => {
|
|
|
|
mock.restore();
|
|
|
|
stopPolling();
|
|
|
|
clearEtagPoll();
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('success', () => {
|
2018-10-17 06:34:19 -04:00
|
|
|
it('dispatches requestTrace, receiveTraceSuccess and stopPollingTrace when job is complete', done => {
|
2018-09-03 03:49:52 -04:00
|
|
|
mock.onGet(`${TEST_HOST}/endpoint/trace.json`).replyOnce(200, {
|
|
|
|
html: 'I, [2018-08-17T22:57:45.707325 #1841] INFO -- :',
|
|
|
|
complete: true,
|
|
|
|
});
|
|
|
|
|
|
|
|
testAction(
|
|
|
|
fetchTrace,
|
|
|
|
null,
|
|
|
|
mockedState,
|
|
|
|
[],
|
|
|
|
[
|
|
|
|
{
|
2018-10-17 06:34:19 -04:00
|
|
|
type: 'toggleScrollisInBottom',
|
|
|
|
payload: true,
|
2018-09-03 03:49:52 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
payload: {
|
2018-10-03 10:13:20 -04:00
|
|
|
html: 'I, [2018-08-17T22:57:45.707325 #1841] INFO -- :',
|
|
|
|
complete: true,
|
2018-09-03 03:49:52 -04:00
|
|
|
},
|
|
|
|
type: 'receiveTraceSuccess',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'stopPollingTrace',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('error', () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
mock.onGet(`${TEST_HOST}/endpoint/trace.json`).reply(500);
|
|
|
|
});
|
|
|
|
|
|
|
|
it('dispatches requestTrace and receiveTraceError ', done => {
|
|
|
|
testAction(
|
|
|
|
fetchTrace,
|
|
|
|
null,
|
|
|
|
mockedState,
|
|
|
|
[],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
type: 'receiveTraceError',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('stopPollingTrace', () => {
|
|
|
|
it('should commit STOP_POLLING_TRACE mutation ', done => {
|
|
|
|
testAction(
|
|
|
|
stopPollingTrace,
|
|
|
|
null,
|
|
|
|
mockedState,
|
|
|
|
[{ type: types.STOP_POLLING_TRACE }],
|
|
|
|
[],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('receiveTraceSuccess', () => {
|
|
|
|
it('should commit RECEIVE_TRACE_SUCCESS mutation ', done => {
|
|
|
|
testAction(
|
|
|
|
receiveTraceSuccess,
|
|
|
|
'hello world',
|
|
|
|
mockedState,
|
|
|
|
[{ type: types.RECEIVE_TRACE_SUCCESS, payload: 'hello world' }],
|
|
|
|
[],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('receiveTraceError', () => {
|
|
|
|
it('should commit RECEIVE_TRACE_ERROR mutation ', done => {
|
|
|
|
testAction(
|
|
|
|
receiveTraceError,
|
|
|
|
null,
|
|
|
|
mockedState,
|
|
|
|
[{ type: types.RECEIVE_TRACE_ERROR }],
|
|
|
|
[],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('requestStages', () => {
|
|
|
|
it('should commit REQUEST_STAGES mutation ', done => {
|
|
|
|
testAction(requestStages, null, mockedState, [{ type: types.REQUEST_STAGES }], [], done);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('fetchStages', () => {
|
|
|
|
let mock;
|
|
|
|
|
|
|
|
beforeEach(() => {
|
2018-10-03 10:13:20 -04:00
|
|
|
mockedState.job.pipeline = {
|
2018-10-11 08:39:20 -04:00
|
|
|
path: `${TEST_HOST}/endpoint`,
|
2018-10-03 10:13:20 -04:00
|
|
|
};
|
2018-10-17 03:13:26 -04:00
|
|
|
mockedState.selectedStage = 'deploy';
|
2018-09-03 03:49:52 -04:00
|
|
|
mock = new MockAdapter(axios);
|
|
|
|
});
|
|
|
|
|
|
|
|
afterEach(() => {
|
|
|
|
mock.restore();
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('success', () => {
|
2018-10-03 10:13:20 -04:00
|
|
|
it('dispatches requestStages and receiveStagesSuccess, fetchJobsForStage ', done => {
|
|
|
|
mock
|
2018-10-11 08:39:20 -04:00
|
|
|
.onGet(`${TEST_HOST}/endpoint.json`)
|
2018-10-12 13:13:41 -04:00
|
|
|
.replyOnce(200, { details: { stages: [{ name: 'build' }, { name: 'deploy' }] } });
|
2018-09-03 03:49:52 -04:00
|
|
|
|
|
|
|
testAction(
|
|
|
|
fetchStages,
|
|
|
|
null,
|
|
|
|
mockedState,
|
|
|
|
[],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
type: 'requestStages',
|
|
|
|
},
|
|
|
|
{
|
2018-10-12 13:13:41 -04:00
|
|
|
payload: [{ name: 'build' }, { name: 'deploy' }],
|
2018-09-03 03:49:52 -04:00
|
|
|
type: 'receiveStagesSuccess',
|
|
|
|
},
|
2018-10-03 10:13:20 -04:00
|
|
|
{
|
2018-10-12 13:13:41 -04:00
|
|
|
payload: { name: 'deploy' },
|
2018-10-03 10:13:20 -04:00
|
|
|
type: 'fetchJobsForStage',
|
|
|
|
},
|
2018-09-03 03:49:52 -04:00
|
|
|
],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('error', () => {
|
|
|
|
beforeEach(() => {
|
|
|
|
mock.onGet(`${TEST_HOST}/endpoint.json`).reply(500);
|
|
|
|
});
|
|
|
|
|
|
|
|
it('dispatches requestStages and receiveStagesError ', done => {
|
|
|
|
testAction(
|
|
|
|
fetchStages,
|
|
|
|
null,
|
|
|
|
mockedState,
|
|
|
|
[],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
type: 'requestStages',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'receiveStagesError',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('receiveStagesSuccess', () => {
|
|
|
|
it('should commit RECEIVE_STAGES_SUCCESS mutation ', done => {
|
|
|
|
testAction(
|
|
|
|
receiveStagesSuccess,
|
|
|
|
{},
|
|
|
|
mockedState,
|
|
|
|
[{ type: types.RECEIVE_STAGES_SUCCESS, payload: {} }],
|
|
|
|
[],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('receiveStagesError', () => {
|
|
|
|
it('should commit RECEIVE_STAGES_ERROR mutation ', done => {
|
|
|
|
testAction(
|
|
|
|
receiveStagesError,
|
|
|
|
null,
|
|
|
|
mockedState,
|
|
|
|
[{ type: types.RECEIVE_STAGES_ERROR }],
|
|
|
|
[],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('requestJobsForStage', () => {
|
|
|
|
it('should commit REQUEST_JOBS_FOR_STAGE mutation ', done => {
|
|
|
|
testAction(
|
|
|
|
requestJobsForStage,
|
2018-10-12 13:13:41 -04:00
|
|
|
{ name: 'deploy' },
|
2018-09-03 03:49:52 -04:00
|
|
|
mockedState,
|
2018-10-12 13:13:41 -04:00
|
|
|
[{ type: types.REQUEST_JOBS_FOR_STAGE, payload: { name: 'deploy' } }],
|
2018-09-03 03:49:52 -04:00
|
|
|
[],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('fetchJobsForStage', () => {
|
|
|
|
let mock;
|
|
|
|
|
|
|
|
beforeEach(() => {
|
|
|
|
mock = new MockAdapter(axios);
|
|
|
|
});
|
|
|
|
|
|
|
|
afterEach(() => {
|
|
|
|
mock.restore();
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('success', () => {
|
2018-10-03 10:13:20 -04:00
|
|
|
it('dispatches requestJobsForStage and receiveJobsForStageSuccess ', done => {
|
|
|
|
mock
|
|
|
|
.onGet(`${TEST_HOST}/jobs.json`)
|
|
|
|
.replyOnce(200, { latest_statuses: [{ id: 121212, name: 'build' }], retried: [] });
|
2018-09-03 03:49:52 -04:00
|
|
|
|
|
|
|
testAction(
|
|
|
|
fetchJobsForStage,
|
2018-10-03 10:13:20 -04:00
|
|
|
{ dropdown_path: `${TEST_HOST}/jobs.json` },
|
2018-09-03 03:49:52 -04:00
|
|
|
mockedState,
|
|
|
|
[],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
type: 'requestJobsForStage',
|
2018-10-12 13:13:41 -04:00
|
|
|
payload: { dropdown_path: `${TEST_HOST}/jobs.json` },
|
2018-09-03 03:49:52 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
payload: [{ id: 121212, name: 'build' }],
|
|
|
|
type: 'receiveJobsForStageSuccess',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('error', () => {
|
|
|
|
beforeEach(() => {
|
2018-10-03 10:13:20 -04:00
|
|
|
mock.onGet(`${TEST_HOST}/jobs.json`).reply(500);
|
2018-09-03 03:49:52 -04:00
|
|
|
});
|
|
|
|
|
2018-10-03 10:13:20 -04:00
|
|
|
it('dispatches requestJobsForStage and receiveJobsForStageError', done => {
|
2018-09-03 03:49:52 -04:00
|
|
|
testAction(
|
|
|
|
fetchJobsForStage,
|
2018-10-03 10:13:20 -04:00
|
|
|
{ dropdown_path: `${TEST_HOST}/jobs.json` },
|
2018-09-03 03:49:52 -04:00
|
|
|
mockedState,
|
|
|
|
[],
|
|
|
|
[
|
|
|
|
{
|
|
|
|
type: 'requestJobsForStage',
|
2018-10-12 13:13:41 -04:00
|
|
|
payload: { dropdown_path: `${TEST_HOST}/jobs.json` },
|
2018-09-03 03:49:52 -04:00
|
|
|
},
|
|
|
|
{
|
|
|
|
type: 'receiveJobsForStageError',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('receiveJobsForStageSuccess', () => {
|
|
|
|
it('should commit RECEIVE_JOBS_FOR_STAGE_SUCCESS mutation ', done => {
|
|
|
|
testAction(
|
|
|
|
receiveJobsForStageSuccess,
|
|
|
|
[{ id: 121212, name: 'karma' }],
|
|
|
|
mockedState,
|
|
|
|
[{ type: types.RECEIVE_JOBS_FOR_STAGE_SUCCESS, payload: [{ id: 121212, name: 'karma' }] }],
|
|
|
|
[],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
describe('receiveJobsForStageError', () => {
|
|
|
|
it('should commit RECEIVE_JOBS_FOR_STAGE_ERROR mutation ', done => {
|
|
|
|
testAction(
|
|
|
|
receiveJobsForStageError,
|
|
|
|
null,
|
|
|
|
mockedState,
|
|
|
|
[{ type: types.RECEIVE_JOBS_FOR_STAGE_ERROR }],
|
|
|
|
[],
|
|
|
|
done,
|
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|