Fix frontend tests with connect function
This commit is contained in:
parent
f99767e884
commit
a89973d366
|
@ -12,7 +12,14 @@ const TicketList = requireUnit('app-components/ticket-list', {
|
|||
'core-components/button': Button,
|
||||
'core-components/tooltip': Tooltip,
|
||||
'app-components/department-dropdown': DepartmentDropdown,
|
||||
'lib-app/i18n': i18n
|
||||
'lib-app/i18n': i18n,
|
||||
'react-redux': {
|
||||
connect: function() {
|
||||
return function(param) {
|
||||
return param;
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
describe('TicketList component', function () {
|
||||
|
@ -32,7 +39,8 @@ describe('TicketList component', function () {
|
|||
author: {
|
||||
id: 3,
|
||||
name: 'Francisco Villegas'
|
||||
}
|
||||
},
|
||||
tags: []
|
||||
};
|
||||
let list = _.range(5).map(() => ticket);
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import _ from 'lodash';
|
||||
import {connect} from "react-redux";
|
||||
import {connect} from 'react-redux';
|
||||
|
||||
import i18n from 'lib-app/i18n';
|
||||
import DateTransformer from 'lib-core/date-transformer';
|
||||
|
@ -10,7 +10,6 @@ import DepartmentDropdown from 'app-components/department-dropdown';
|
|||
import Table from 'core-components/table';
|
||||
import Button from 'core-components/button';
|
||||
import Tooltip from 'core-components/tooltip';
|
||||
import Icon from 'core-components/icon';
|
||||
import Checkbox from 'core-components/checkbox';
|
||||
import Tag from 'core-components/tag';
|
||||
|
||||
|
|
Loading…
Reference in New Issue