mirror of https://github.com/apache/superset.git
Moving some JS folders (#4820)
* Moving folders * Pointing to new locations
This commit is contained in:
parent
2900ca345d
commit
c0db6dbb57
|
@ -17,7 +17,7 @@
|
|||
"build": "NODE_ENV=production webpack --colors --progress",
|
||||
"lint": "eslint --ignore-path=.eslintignore --ext .js,.jsx .",
|
||||
"lint-fix": "eslint --fix --ignore-path=.eslintignore --ext .js,.jsx .",
|
||||
"sync-backend": "babel-node --presets env javascripts/syncBackend.js"
|
||||
"sync-backend": "babel-node --presets env src/syncBackend.js"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -4,7 +4,7 @@ import { describe, it, beforeEach } from 'mocha';
|
|||
import { shallow } from 'enzyme';
|
||||
import { Button } from 'react-bootstrap';
|
||||
import Select from 'react-virtualized-select';
|
||||
import AddSliceContainer from '../../../javascripts/addSlice/AddSliceContainer';
|
||||
import AddSliceContainer from '../../../src/addSlice/AddSliceContainer';
|
||||
|
||||
const defaultProps = {
|
||||
datasources: [
|
||||
|
|
|
@ -4,10 +4,10 @@ import { describe, it } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
import sinon from 'sinon';
|
||||
|
||||
import { chart as initChart } from '../../../javascripts/chart/chartReducer';
|
||||
import Chart from '../../../javascripts/chart/Chart';
|
||||
import ChartBody from '../../../javascripts/chart/ChartBody';
|
||||
import Loading from '../../../javascripts/components/Loading';
|
||||
import { chart as initChart } from '../../../src/chart/chartReducer';
|
||||
import Chart from '../../../src/chart/Chart';
|
||||
import ChartBody from '../../../src/chart/ChartBody';
|
||||
import Loading from '../../../src/components/Loading';
|
||||
|
||||
describe('Chart', () => {
|
||||
const chart = {
|
||||
|
|
|
@ -5,9 +5,9 @@ import { expect } from 'chai';
|
|||
|
||||
import { Table, Thead, Td, Th, Tr } from 'reactable';
|
||||
|
||||
import AlteredSliceTag from '../../../javascripts/components/AlteredSliceTag';
|
||||
import ModalTrigger from '../../../javascripts/components/ModalTrigger';
|
||||
import TooltipWrapper from '../../../javascripts/components/TooltipWrapper';
|
||||
import AlteredSliceTag from '../../../src/components/AlteredSliceTag';
|
||||
import ModalTrigger from '../../../src/components/ModalTrigger';
|
||||
import TooltipWrapper from '../../../src/components/TooltipWrapper';
|
||||
|
||||
const defaultProps = {
|
||||
origFormData: {
|
||||
|
|
|
@ -5,7 +5,7 @@ import { describe, it } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
import sinon from 'sinon';
|
||||
|
||||
import AsyncSelect from '../../../javascripts/components/AsyncSelect';
|
||||
import AsyncSelect from '../../../src/components/AsyncSelect';
|
||||
|
||||
describe('AsyncSelect', () => {
|
||||
const mockedProps = {
|
||||
|
|
|
@ -4,7 +4,7 @@ import { describe, it } from 'mocha';
|
|||
import { shallow } from 'enzyme';
|
||||
import { Label } from 'react-bootstrap';
|
||||
|
||||
import CachedLabel from '../../../javascripts/components/CachedLabel';
|
||||
import CachedLabel from '../../../src/components/CachedLabel';
|
||||
|
||||
describe('CachedLabel', () => {
|
||||
const defaultProps = {
|
||||
|
|
|
@ -4,7 +4,7 @@ import { describe, it } from 'mocha';
|
|||
import sinon from 'sinon';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import Checkbox from '../../../javascripts/components/Checkbox';
|
||||
import Checkbox from '../../../src/components/Checkbox';
|
||||
|
||||
describe('Checkbox', () => {
|
||||
const defaultProps = {
|
||||
|
|
|
@ -3,9 +3,9 @@ import { expect } from 'chai';
|
|||
import { describe, it } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import ColumnOption from '../../../javascripts/components/ColumnOption';
|
||||
import ColumnTypeLabel from '../../../javascripts/components/ColumnTypeLabel';
|
||||
import InfoTooltipWithTrigger from '../../../javascripts/components/InfoTooltipWithTrigger';
|
||||
import ColumnOption from '../../../src/components/ColumnOption';
|
||||
import ColumnTypeLabel from '../../../src/components/ColumnTypeLabel';
|
||||
import InfoTooltipWithTrigger from '../../../src/components/InfoTooltipWithTrigger';
|
||||
|
||||
describe('ColumnOption', () => {
|
||||
const defaultProps = {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { expect } from 'chai';
|
|||
import { describe, it } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import ColumnTypeLabel from '../../../javascripts/components/ColumnTypeLabel';
|
||||
import ColumnTypeLabel from '../../../src/components/ColumnTypeLabel';
|
||||
|
||||
describe('ColumnOption', () => {
|
||||
const defaultProps = {
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import { expect } from 'chai';
|
||||
import { describe, it } from 'mocha';
|
||||
|
||||
import CopyToClipboard from '../../../javascripts/components/CopyToClipboard';
|
||||
import CopyToClipboard from '../../../src/components/CopyToClipboard';
|
||||
|
||||
describe('CopyToClipboard', () => {
|
||||
const defaultProps = {
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
import { mount } from 'enzyme';
|
||||
import FilterableTable from '../../../../javascripts/components/FilterableTable/FilterableTable';
|
||||
import FilterableTable from '../../../../src/components/FilterableTable/FilterableTable';
|
||||
|
||||
describe('FilterableTable', () => {
|
||||
const mockedProps = {
|
||||
|
|
|
@ -3,9 +3,9 @@ import { expect } from 'chai';
|
|||
import { describe, it } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import MetricOption from '../../../javascripts/components/MetricOption';
|
||||
import ColumnTypeLabel from '../../../javascripts/components/ColumnTypeLabel';
|
||||
import InfoTooltipWithTrigger from '../../../javascripts/components/InfoTooltipWithTrigger';
|
||||
import MetricOption from '../../../src/components/MetricOption';
|
||||
import ColumnTypeLabel from '../../../src/components/ColumnTypeLabel';
|
||||
import InfoTooltipWithTrigger from '../../../src/components/InfoTooltipWithTrigger';
|
||||
|
||||
describe('MetricOption', () => {
|
||||
const defaultProps = {
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import { expect } from 'chai';
|
||||
import { describe, it } from 'mocha';
|
||||
|
||||
import ModalTrigger from '../../../javascripts/components/ModalTrigger';
|
||||
import ModalTrigger from '../../../src/components/ModalTrigger';
|
||||
|
||||
describe('ModalTrigger', () => {
|
||||
const defaultProps = {
|
||||
|
|
|
@ -7,7 +7,7 @@ import { describe, it } from 'mocha';
|
|||
import VirtualizedSelect from 'react-virtualized-select';
|
||||
import Select, { Creatable } from 'react-select';
|
||||
|
||||
import OnPasteSelect from '../../../javascripts/components/OnPasteSelect';
|
||||
import OnPasteSelect from '../../../src/components/OnPasteSelect';
|
||||
|
||||
const defaultProps = {
|
||||
onChange: sinon.spy(),
|
||||
|
|
|
@ -3,8 +3,8 @@ import { shallow } from 'enzyme';
|
|||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import InfoTooltipWithTrigger from '../../../javascripts/components/InfoTooltipWithTrigger';
|
||||
import OptionDescription from '../../../javascripts/components/OptionDescription';
|
||||
import InfoTooltipWithTrigger from '../../../src/components/InfoTooltipWithTrigger';
|
||||
import OptionDescription from '../../../src/components/OptionDescription';
|
||||
|
||||
const defaultProps = {
|
||||
option: {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { expect } from 'chai';
|
|||
import { describe, it } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import PopoverSection from '../../../javascripts/components/PopoverSection';
|
||||
import PopoverSection from '../../../src/components/PopoverSection';
|
||||
|
||||
describe('PopoverSection', () => {
|
||||
const defaultProps = {
|
||||
|
|
|
@ -6,7 +6,7 @@ import { expect } from 'chai';
|
|||
import { describe, it } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import VirtualizedRendererWrap from '../../../javascripts/components/VirtualizedRendererWrap';
|
||||
import VirtualizedRendererWrap from '../../../src/components/VirtualizedRendererWrap';
|
||||
|
||||
const defaultProps = {
|
||||
focusedOption: { label: 'focusedOn', value: 'focusedOn' },
|
||||
|
|
|
@ -3,7 +3,7 @@ import { mount } from 'enzyme';
|
|||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import CodeModal from '../../../javascripts/dashboard/components/CodeModal';
|
||||
import CodeModal from '../../../src/dashboard/components/CodeModal';
|
||||
|
||||
describe('CodeModal', () => {
|
||||
const mockedProps = {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { mount } from 'enzyme';
|
|||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import CssEditor from '../../../javascripts/dashboard/components/CssEditor';
|
||||
import CssEditor from '../../../src/dashboard/components/CssEditor';
|
||||
|
||||
describe('CssEditor', () => {
|
||||
const mockedProps = {
|
||||
|
|
|
@ -4,9 +4,9 @@ import { describe, it } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
import sinon from 'sinon';
|
||||
|
||||
import * as dashboardActions from '../../../javascripts/dashboard/actions';
|
||||
import * as chartActions from '../../../javascripts/chart/chartAction';
|
||||
import Dashboard from '../../../javascripts/dashboard/components/Dashboard';
|
||||
import * as dashboardActions from '../../../src/dashboard/actions';
|
||||
import * as chartActions from '../../../src/chart/chartAction';
|
||||
import Dashboard from '../../../src/dashboard/components/Dashboard';
|
||||
import { defaultFilters, dashboard, charts } from './fixtures';
|
||||
|
||||
describe('Dashboard', () => {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { mount } from 'enzyme';
|
|||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import RefreshIntervalModal from '../../../javascripts/dashboard/components/RefreshIntervalModal';
|
||||
import RefreshIntervalModal from '../../../src/dashboard/components/RefreshIntervalModal';
|
||||
|
||||
describe('RefreshIntervalModal', () => {
|
||||
const mockedProps = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { getInitialState } from '../../../javascripts/dashboard/reducers';
|
||||
import { getInitialState } from '../../../src/dashboard/reducers';
|
||||
|
||||
export const defaultFilters = {
|
||||
256: { region: [] },
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import { dashboard as reducers } from '../../../javascripts/dashboard/reducers';
|
||||
import * as actions from '../../../javascripts/dashboard/actions';
|
||||
import { dashboard as reducers } from '../../../src/dashboard/reducers';
|
||||
import * as actions from '../../../src/dashboard/actions';
|
||||
import { defaultFilters, dashboard as initState } from './fixtures';
|
||||
|
||||
describe('Dashboard reducers', () => {
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { expect } from 'chai';
|
||||
import { describe, it } from 'mocha';
|
||||
|
||||
import AdhocMetric, { EXPRESSION_TYPES } from '../../../javascripts/explore/AdhocMetric';
|
||||
import { AGGREGATES } from '../../../javascripts/explore/constants';
|
||||
import AdhocMetric, { EXPRESSION_TYPES } from '../../../src/explore/AdhocMetric';
|
||||
import { AGGREGATES } from '../../../src/explore/constants';
|
||||
|
||||
const valueColumn = { type: 'DOUBLE', column_name: 'value' };
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@ import { it, describe } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
import sinon from 'sinon';
|
||||
import $ from 'jquery';
|
||||
import * as exploreUtils from '../../../javascripts/explore/exploreUtils';
|
||||
import * as actions from '../../../javascripts/chart/chartAction';
|
||||
import * as exploreUtils from '../../../src/explore/exploreUtils';
|
||||
import * as actions from '../../../src/chart/chartAction';
|
||||
|
||||
describe('chart actions', () => {
|
||||
let dispatch;
|
||||
|
|
|
@ -6,9 +6,9 @@ import { describe, it } from 'mocha';
|
|||
import { shallow } from 'enzyme';
|
||||
import { OverlayTrigger } from 'react-bootstrap';
|
||||
|
||||
import AdhocMetric from '../../../../javascripts/explore/AdhocMetric';
|
||||
import AdhocMetricEditPopoverTitle from '../../../../javascripts/explore/components/AdhocMetricEditPopoverTitle';
|
||||
import { AGGREGATES } from '../../../../javascripts/explore/constants';
|
||||
import AdhocMetric from '../../../../src/explore/AdhocMetric';
|
||||
import AdhocMetricEditPopoverTitle from '../../../../src/explore/components/AdhocMetricEditPopoverTitle';
|
||||
import { AGGREGATES } from '../../../../src/explore/constants';
|
||||
|
||||
const columns = [
|
||||
{ type: 'VARCHAR(255)', column_name: 'source' },
|
||||
|
|
|
@ -6,9 +6,9 @@ import { describe, it } from 'mocha';
|
|||
import { shallow } from 'enzyme';
|
||||
import { Button, FormGroup, Popover } from 'react-bootstrap';
|
||||
|
||||
import AdhocMetric, { EXPRESSION_TYPES } from '../../../../javascripts/explore/AdhocMetric';
|
||||
import AdhocMetricEditPopover from '../../../../javascripts/explore/components/AdhocMetricEditPopover';
|
||||
import { AGGREGATES } from '../../../../javascripts/explore/constants';
|
||||
import AdhocMetric, { EXPRESSION_TYPES } from '../../../../src/explore/AdhocMetric';
|
||||
import AdhocMetricEditPopover from '../../../../src/explore/components/AdhocMetricEditPopover';
|
||||
import { AGGREGATES } from '../../../../src/explore/constants';
|
||||
|
||||
const columns = [
|
||||
{ type: 'VARCHAR(255)', column_name: 'source' },
|
||||
|
|
|
@ -6,9 +6,9 @@ import { describe, it } from 'mocha';
|
|||
import { shallow } from 'enzyme';
|
||||
import { Label, OverlayTrigger } from 'react-bootstrap';
|
||||
|
||||
import AdhocMetric from '../../../../javascripts/explore/AdhocMetric';
|
||||
import AdhocMetricOption from '../../../../javascripts/explore/components/AdhocMetricOption';
|
||||
import { AGGREGATES } from '../../../../javascripts/explore/constants';
|
||||
import AdhocMetric from '../../../../src/explore/AdhocMetric';
|
||||
import AdhocMetricOption from '../../../../src/explore/components/AdhocMetricOption';
|
||||
import { AGGREGATES } from '../../../../src/explore/constants';
|
||||
|
||||
const columns = [
|
||||
{ type: 'VARCHAR(255)', column_name: 'source' },
|
||||
|
|
|
@ -4,7 +4,7 @@ import { expect } from 'chai';
|
|||
import { describe, it } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import AggregateOption from '../../../../javascripts/explore/components/AggregateOption';
|
||||
import AggregateOption from '../../../../src/explore/components/AggregateOption';
|
||||
|
||||
describe('AggregateOption', () => {
|
||||
it('renders the aggregate', () => {
|
||||
|
|
|
@ -6,7 +6,7 @@ import { expect } from 'chai';
|
|||
import { describe, it, beforeEach } from 'mocha';
|
||||
import { mount } from 'enzyme';
|
||||
|
||||
import BoundsControl from '../../../../javascripts/explore/components/controls/BoundsControl';
|
||||
import BoundsControl from '../../../../src/explore/components/controls/BoundsControl';
|
||||
|
||||
const defaultProps = {
|
||||
name: 'y_axis_bounds',
|
||||
|
|
|
@ -5,9 +5,9 @@ import { expect } from 'chai';
|
|||
import { describe, it, beforeEach } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import CheckboxControl from '../../../../javascripts/explore/components/controls/CheckboxControl';
|
||||
import ControlHeader from '../../../../javascripts/explore/components/ControlHeader';
|
||||
import Checkbox from '../../../../javascripts/components/Checkbox';
|
||||
import CheckboxControl from '../../../../src/explore/components/controls/CheckboxControl';
|
||||
import ControlHeader from '../../../../src/explore/components/ControlHeader';
|
||||
import Checkbox from '../../../../src/components/Checkbox';
|
||||
|
||||
const defaultProps = {
|
||||
name: 'show_legend',
|
||||
|
|
|
@ -7,8 +7,8 @@ import { OverlayTrigger } from 'react-bootstrap';
|
|||
import { SketchPicker } from 'react-color';
|
||||
|
||||
import ColorPickerControl from
|
||||
'../../../../javascripts/explore/components/controls/ColorPickerControl';
|
||||
import ControlHeader from '../../../../javascripts/explore/components/ControlHeader';
|
||||
'../../../../src/explore/components/controls/ColorPickerControl';
|
||||
import ControlHeader from '../../../../src/explore/components/ControlHeader';
|
||||
|
||||
const defaultProps = {
|
||||
value: { },
|
||||
|
|
|
@ -6,8 +6,8 @@ import { mount } from 'enzyme';
|
|||
import { Creatable } from 'react-select';
|
||||
|
||||
import ColorSchemeControl from
|
||||
'../../../../javascripts/explore/components/controls/ColorSchemeControl';
|
||||
import { ALL_COLOR_SCHEMES } from '../../../../javascripts/modules/colors';
|
||||
'../../../../src/explore/components/controls/ColorSchemeControl';
|
||||
import { ALL_COLOR_SCHEMES } from '../../../../src/modules/colors';
|
||||
|
||||
const defaultProps = {
|
||||
options: Object.keys(ALL_COLOR_SCHEMES).map(s => ([s, s])),
|
||||
|
|
|
@ -5,10 +5,10 @@ import { shallow } from 'enzyme';
|
|||
import { Panel } from 'react-bootstrap';
|
||||
|
||||
import InfoTooltipWithTrigger from
|
||||
'../../../../javascripts/components/InfoTooltipWithTrigger';
|
||||
'../../../../src/components/InfoTooltipWithTrigger';
|
||||
|
||||
import ControlPanelSection from
|
||||
'../../../../javascripts/explore/components/ControlPanelSection';
|
||||
'../../../../src/explore/components/ControlPanelSection';
|
||||
|
||||
const defaultProps = {
|
||||
children: <div>a child element</div>,
|
||||
|
|
|
@ -3,11 +3,11 @@ import { expect } from 'chai';
|
|||
import { describe, it, beforeEach } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
import { getFormDataFromControls, defaultControls }
|
||||
from '../../../../javascripts/explore/stores/store';
|
||||
from '../../../../src/explore/stores/store';
|
||||
import {
|
||||
ControlPanelsContainer,
|
||||
} from '../../../../javascripts/explore/components/ControlPanelsContainer';
|
||||
import ControlPanelSection from '../../../../javascripts/explore/components/ControlPanelSection';
|
||||
} from '../../../../src/explore/components/ControlPanelsContainer';
|
||||
import ControlPanelSection from '../../../../src/explore/components/ControlPanelSection';
|
||||
|
||||
const defaultProps = {
|
||||
datasource_type: 'table',
|
||||
|
|
|
@ -2,7 +2,7 @@ import React from 'react';
|
|||
import { expect } from 'chai';
|
||||
import { describe, it } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
import ControlSetRow from '../../../../javascripts/explore/components/ControlRow';
|
||||
import ControlSetRow from '../../../../src/explore/components/ControlRow';
|
||||
|
||||
describe('ControlSetRow', () => {
|
||||
it('renders a single row with one element', () => {
|
||||
|
|
|
@ -4,7 +4,7 @@ import { expect } from 'chai';
|
|||
import { describe, it, beforeEach } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
import { Modal } from 'react-bootstrap';
|
||||
import DatasourceControl from '../../../../javascripts/explore/components/controls/DatasourceControl';
|
||||
import DatasourceControl from '../../../../src/explore/components/controls/DatasourceControl';
|
||||
|
||||
const defaultProps = {
|
||||
name: 'datasource',
|
||||
|
|
|
@ -6,8 +6,8 @@ import { describe, it, beforeEach } from 'mocha';
|
|||
import { shallow } from 'enzyme';
|
||||
import { Button } from 'react-bootstrap';
|
||||
|
||||
import DateFilterControl from '../../../../javascripts/explore/components/controls/DateFilterControl';
|
||||
import ControlHeader from '../../../../javascripts/explore/components/ControlHeader';
|
||||
import DateFilterControl from '../../../../src/explore/components/controls/DateFilterControl';
|
||||
import ControlHeader from '../../../../src/explore/components/ControlHeader';
|
||||
|
||||
const defaultProps = {
|
||||
animation: false,
|
||||
|
|
|
@ -3,9 +3,9 @@ import { expect } from 'chai';
|
|||
import { describe, it } from 'mocha';
|
||||
import { mount } from 'enzyme';
|
||||
import { Modal } from 'react-bootstrap';
|
||||
import ModalTrigger from './../../../../javascripts/components/ModalTrigger';
|
||||
import ModalTrigger from './../../../../src/components/ModalTrigger';
|
||||
|
||||
import DisplayQueryButton from '../../../../javascripts/explore/components/DisplayQueryButton';
|
||||
import DisplayQueryButton from '../../../../src/explore/components/DisplayQueryButton';
|
||||
|
||||
describe('DisplayQueryButton', () => {
|
||||
const defaultProps = {
|
||||
|
|
|
@ -5,8 +5,8 @@ import { shallow, mount } from 'enzyme';
|
|||
import { OverlayTrigger } from 'react-bootstrap';
|
||||
import sinon from 'sinon';
|
||||
|
||||
import EmbedCodeButton from '../../../../javascripts/explore/components/EmbedCodeButton';
|
||||
import * as exploreUtils from '../../../../javascripts/explore/exploreUtils';
|
||||
import EmbedCodeButton from '../../../../src/explore/components/EmbedCodeButton';
|
||||
import * as exploreUtils from '../../../../src/explore/exploreUtils';
|
||||
|
||||
describe('EmbedCodeButton', () => {
|
||||
const defaultProps = {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { expect } from 'chai';
|
|||
import { describe, it } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
import ExploreActionButtons from
|
||||
'../../../../javascripts/explore/components/ExploreActionButtons';
|
||||
'../../../../src/explore/components/ExploreActionButtons';
|
||||
|
||||
describe('ExploreActionButtons', () => {
|
||||
const defaultProps = {
|
||||
|
|
|
@ -3,9 +3,9 @@ import { expect } from 'chai';
|
|||
import { describe, it } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import ExploreChartHeader from '../../../../javascripts/explore/components/ExploreChartHeader';
|
||||
import ExploreActionButtons from '../../../../javascripts/explore/components/ExploreActionButtons';
|
||||
import EditableTitle from '../../../../javascripts/components/EditableTitle';
|
||||
import ExploreChartHeader from '../../../../src/explore/components/ExploreChartHeader';
|
||||
import ExploreActionButtons from '../../../../src/explore/components/ExploreActionButtons';
|
||||
import EditableTitle from '../../../../src/components/EditableTitle';
|
||||
|
||||
const mockProps = {
|
||||
actions: {},
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// import { expect } from 'chai';
|
||||
// import { describe, it } from 'mocha';
|
||||
|
||||
// import ChartContainer from '../../../../javascripts/explore/components/ChartContainer';
|
||||
// import ChartContainer from '../../../../src/explore/components/ChartContainer';
|
||||
|
||||
// describe('ChartContainer', () => {
|
||||
// const mockProps = {
|
||||
|
|
|
@ -7,13 +7,13 @@
|
|||
// import { shallow } from 'enzyme';
|
||||
|
||||
// import ExploreViewContainer
|
||||
// from '../../../../javascripts/explore/components/ExploreViewContainer';
|
||||
// from '../../../../src/explore/components/ExploreViewContainer';
|
||||
// import QueryAndSaveBtns
|
||||
// from '../../../../javascripts/explore/components/QueryAndSaveBtns';
|
||||
// from '../../../../src/explore/components/QueryAndSaveBtns';
|
||||
// import ControlPanelsContainer
|
||||
// from '../../../../javascripts/explore/components/ControlPanelsContainer';
|
||||
// from '../../../../src/explore/components/ControlPanelsContainer';
|
||||
// import ChartContainer
|
||||
// from '../../../../javascripts/explore/components/ChartContainer';
|
||||
// from '../../../../src/explore/components/ChartContainer';
|
||||
|
||||
// describe('ExploreViewContainer', () => {
|
||||
// it('renders', () => {
|
||||
|
|
|
@ -5,8 +5,8 @@ import sinon from 'sinon';
|
|||
import { expect } from 'chai';
|
||||
import { describe, it, beforeEach } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
import FilterControl from '../../../../javascripts/explore/components/controls/FilterControl';
|
||||
import Filter from '../../../../javascripts/explore/components/controls/Filter';
|
||||
import FilterControl from '../../../../src/explore/components/controls/FilterControl';
|
||||
import Filter from '../../../../src/explore/components/controls/Filter';
|
||||
|
||||
const $ = window.$ = require('jquery');
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@ import sinon from 'sinon';
|
|||
import { expect } from 'chai';
|
||||
import { describe, it, beforeEach } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
import Filter from '../../../../javascripts/explore/components/controls/Filter';
|
||||
import SelectControl from '../../../../javascripts/explore/components/controls/SelectControl';
|
||||
import Filter from '../../../../src/explore/components/controls/Filter';
|
||||
import SelectControl from '../../../../src/explore/components/controls/SelectControl';
|
||||
|
||||
const defaultProps = {
|
||||
changeFilter: sinon.spy(),
|
||||
|
|
|
@ -6,12 +6,12 @@ import { shallow } from 'enzyme';
|
|||
import { OverlayTrigger } from 'react-bootstrap';
|
||||
|
||||
import FixedOrMetricControl from
|
||||
'../../../../javascripts/explore/components/controls/FixedOrMetricControl';
|
||||
'../../../../src/explore/components/controls/FixedOrMetricControl';
|
||||
import SelectControl from
|
||||
'../../../../javascripts/explore/components/controls/SelectControl';
|
||||
'../../../../src/explore/components/controls/SelectControl';
|
||||
import TextControl from
|
||||
'../../../../javascripts/explore/components/controls/TextControl';
|
||||
import ControlHeader from '../../../../javascripts/explore/components/ControlHeader';
|
||||
'../../../../src/explore/components/controls/TextControl';
|
||||
import ControlHeader from '../../../../src/explore/components/ControlHeader';
|
||||
|
||||
const defaultProps = {
|
||||
value: { },
|
||||
|
|
|
@ -4,10 +4,10 @@ import { expect } from 'chai';
|
|||
import { describe, it } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import MetricDefinitionOption from '../../../../javascripts/explore/components/MetricDefinitionOption';
|
||||
import MetricOption from '../../../../javascripts/components/MetricOption';
|
||||
import ColumnOption from '../../../../javascripts/components/ColumnOption';
|
||||
import AggregateOption from '../../../../javascripts/explore/components/AggregateOption';
|
||||
import MetricDefinitionOption from '../../../../src/explore/components/MetricDefinitionOption';
|
||||
import MetricOption from '../../../../src/components/MetricOption';
|
||||
import ColumnOption from '../../../../src/components/ColumnOption';
|
||||
import AggregateOption from '../../../../src/explore/components/AggregateOption';
|
||||
|
||||
describe('MetricDefinitionOption', () => {
|
||||
it('renders a MetricOption given a saved metric', () => {
|
||||
|
|
|
@ -4,11 +4,11 @@ import { expect } from 'chai';
|
|||
import { describe, it } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import MetricDefinitionValue from '../../../../javascripts/explore/components/MetricDefinitionValue';
|
||||
import MetricOption from '../../../../javascripts/components/MetricOption';
|
||||
import AdhocMetricOption from '../../../../javascripts/explore/components/AdhocMetricOption';
|
||||
import AdhocMetric from '../../../../javascripts/explore/AdhocMetric';
|
||||
import { AGGREGATES } from '../../../../javascripts/explore/constants';
|
||||
import MetricDefinitionValue from '../../../../src/explore/components/MetricDefinitionValue';
|
||||
import MetricOption from '../../../../src/components/MetricOption';
|
||||
import AdhocMetricOption from '../../../../src/explore/components/AdhocMetricOption';
|
||||
import AdhocMetric from '../../../../src/explore/AdhocMetric';
|
||||
import { AGGREGATES } from '../../../../src/explore/constants';
|
||||
|
||||
const sumValueAdhocMetric = new AdhocMetric({
|
||||
column: { type: 'DOUBLE', column_name: 'value' },
|
||||
|
|
|
@ -5,10 +5,10 @@ import { expect } from 'chai';
|
|||
import { describe, it } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import MetricsControl from '../../../../javascripts/explore/components/controls/MetricsControl';
|
||||
import { AGGREGATES } from '../../../../javascripts/explore/constants';
|
||||
import OnPasteSelect from '../../../../javascripts/components/OnPasteSelect';
|
||||
import AdhocMetric, { EXPRESSION_TYPES } from '../../../../javascripts/explore/AdhocMetric';
|
||||
import MetricsControl from '../../../../src/explore/components/controls/MetricsControl';
|
||||
import { AGGREGATES } from '../../../../src/explore/constants';
|
||||
import OnPasteSelect from '../../../../src/components/OnPasteSelect';
|
||||
import AdhocMetric, { EXPRESSION_TYPES } from '../../../../src/explore/AdhocMetric';
|
||||
|
||||
const defaultProps = {
|
||||
name: 'metrics',
|
||||
|
|
|
@ -4,8 +4,8 @@ import { expect } from 'chai';
|
|||
import { shallow } from 'enzyme';
|
||||
import sinon from 'sinon';
|
||||
|
||||
import QueryAndSaveButtons from '../../../../javascripts/explore/components/QueryAndSaveBtns';
|
||||
import Button from '../../../../javascripts/components/Button';
|
||||
import QueryAndSaveButtons from '../../../../src/explore/components/QueryAndSaveBtns';
|
||||
import Button from '../../../../src/components/Button';
|
||||
|
||||
describe('QueryAndSaveButtons', () => {
|
||||
const defaultProps = {
|
||||
|
|
|
@ -4,9 +4,9 @@ import { describe, it } from 'mocha';
|
|||
import { shallow } from 'enzyme';
|
||||
import { Label } from 'react-bootstrap';
|
||||
|
||||
import TooltipWrapper from './../../../../javascripts/components/TooltipWrapper';
|
||||
import TooltipWrapper from './../../../../src/components/TooltipWrapper';
|
||||
|
||||
import RowCountLabel from '../../../../javascripts/explore/components/RowCountLabel';
|
||||
import RowCountLabel from '../../../../src/explore/components/RowCountLabel';
|
||||
|
||||
describe('RowCountLabel', () => {
|
||||
const defaultProps = {
|
||||
|
|
|
@ -4,8 +4,8 @@ import { describe, it, beforeEach } from 'mocha';
|
|||
import { shallow } from 'enzyme';
|
||||
|
||||
import RunQueryActionButton
|
||||
from '../../../../javascripts/SqlLab/components/RunQueryActionButton';
|
||||
import Button from '../../../../javascripts/components/Button';
|
||||
from '../../../../src/SqlLab/components/RunQueryActionButton';
|
||||
import Button from '../../../../src/components/Button';
|
||||
|
||||
describe('RunQueryActionButton', () => {
|
||||
let wrapper;
|
||||
|
|
|
@ -8,9 +8,9 @@ import { shallow, mount } from 'enzyme';
|
|||
import { Modal, Button, Radio } from 'react-bootstrap';
|
||||
import sinon from 'sinon';
|
||||
|
||||
import * as exploreUtils from '../../../../javascripts/explore/exploreUtils';
|
||||
import * as saveModalActions from '../../../../javascripts/explore/actions/saveModalActions';
|
||||
import SaveModal from '../../../../javascripts/explore/components/SaveModal';
|
||||
import * as exploreUtils from '../../../../src/explore/exploreUtils';
|
||||
import * as saveModalActions from '../../../../src/explore/actions/saveModalActions';
|
||||
import SaveModal from '../../../../src/explore/components/SaveModal';
|
||||
|
||||
const $ = window.$ = require('jquery');
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ import sinon from 'sinon';
|
|||
import { expect } from 'chai';
|
||||
import { describe, it, beforeEach } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
import OnPasteSelect from '../../../../javascripts/components/OnPasteSelect';
|
||||
import VirtualizedRendererWrap from '../../../../javascripts/components/VirtualizedRendererWrap';
|
||||
import SelectControl from '../../../../javascripts/explore/components/controls/SelectControl';
|
||||
import OnPasteSelect from '../../../../src/components/OnPasteSelect';
|
||||
import VirtualizedRendererWrap from '../../../../src/components/VirtualizedRendererWrap';
|
||||
import SelectControl from '../../../../src/explore/components/controls/SelectControl';
|
||||
|
||||
const defaultProps = {
|
||||
choices: [['1 year ago', '1 year ago'], ['today', 'today']],
|
||||
|
|
|
@ -7,7 +7,7 @@ import { describe, it, beforeEach } from 'mocha';
|
|||
import { shallow } from 'enzyme';
|
||||
import AceEditor from 'react-ace';
|
||||
|
||||
import TextAreaControl from '../../../../javascripts/explore/components/controls/TextAreaControl';
|
||||
import TextAreaControl from '../../../../src/explore/components/controls/TextAreaControl';
|
||||
|
||||
const defaultProps = {
|
||||
name: 'x_axis_label',
|
||||
|
|
|
@ -6,7 +6,7 @@ import { expect } from 'chai';
|
|||
import { describe, it, beforeEach } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import TimeSeriesColumnControl from '../../../../javascripts/explore/components/controls/TimeSeriesColumnControl';
|
||||
import TimeSeriesColumnControl from '../../../../src/explore/components/controls/TimeSeriesColumnControl';
|
||||
|
||||
const defaultProps = {
|
||||
name: 'x_axis_label',
|
||||
|
|
|
@ -4,7 +4,7 @@ import { describe, it } from 'mocha';
|
|||
import { shallow } from 'enzyme';
|
||||
|
||||
import { OverlayTrigger } from 'react-bootstrap';
|
||||
import URLShortLinkButton from '../../../../javascripts/explore/components/URLShortLinkButton';
|
||||
import URLShortLinkButton from '../../../../src/explore/components/URLShortLinkButton';
|
||||
|
||||
describe('URLShortLinkButton', () => {
|
||||
const defaultProps = {
|
||||
|
|
|
@ -6,10 +6,10 @@ import { shallow } from 'enzyme';
|
|||
import { OverlayTrigger, Label } from 'react-bootstrap';
|
||||
|
||||
import ViewportControl from
|
||||
'../../../../javascripts/explore/components/controls/ViewportControl';
|
||||
'../../../../src/explore/components/controls/ViewportControl';
|
||||
import TextControl from
|
||||
'../../../../javascripts/explore/components/controls/TextControl';
|
||||
import ControlHeader from '../../../../javascripts/explore/components/ControlHeader';
|
||||
'../../../../src/explore/components/controls/TextControl';
|
||||
import ControlHeader from '../../../../src/explore/components/ControlHeader';
|
||||
|
||||
const defaultProps = {
|
||||
value: {
|
||||
|
|
|
@ -4,7 +4,7 @@ import { expect } from 'chai';
|
|||
import { describe, it, beforeEach } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
import { Modal } from 'react-bootstrap';
|
||||
import VizTypeControl from '../../../../javascripts/explore/components/controls/VizTypeControl';
|
||||
import VizTypeControl from '../../../../src/explore/components/controls/VizTypeControl';
|
||||
|
||||
const defaultProps = {
|
||||
name: 'viz_type',
|
||||
|
|
|
@ -3,10 +3,10 @@ import { it, describe } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
import sinon from 'sinon';
|
||||
import $ from 'jquery';
|
||||
import * as chartActions from '../../../javascripts/chart/chartAction';
|
||||
import * as actions from '../../../javascripts/explore/actions/exploreActions';
|
||||
import { defaultState } from '../../../javascripts/explore/stores/store';
|
||||
import exploreReducer from '../../../javascripts/explore/reducers/exploreReducer';
|
||||
import * as chartActions from '../../../src/chart/chartAction';
|
||||
import * as actions from '../../../src/explore/actions/exploreActions';
|
||||
import { defaultState } from '../../../src/explore/stores/store';
|
||||
import exploreReducer from '../../../src/explore/reducers/exploreReducer';
|
||||
|
||||
describe('reducers', () => {
|
||||
it('sets correct control value given a key and value', () => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { it, describe } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
import URI from 'urijs';
|
||||
import { getExploreUrlAndPayload, getExploreLongUrl } from '../../../javascripts/explore/exploreUtils';
|
||||
import { getExploreUrlAndPayload, getExploreLongUrl } from '../../../src/explore/exploreUtils';
|
||||
|
||||
describe('exploreUtils', () => {
|
||||
const location = window.location;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { it, describe } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import { ALL_COLOR_SCHEMES, getColorFromScheme, hexToRGB } from '../../../javascripts/modules/colors';
|
||||
import { ALL_COLOR_SCHEMES, getColorFromScheme, hexToRGB } from '../../../src/modules/colors';
|
||||
|
||||
describe('colors', () => {
|
||||
it('default to bnbColors', () => {
|
||||
|
|
|
@ -8,7 +8,7 @@ import {
|
|||
epochTimeXHoursAgo,
|
||||
epochTimeXDaysAgo,
|
||||
epochTimeXYearsAgo,
|
||||
} from '../../../javascripts/modules/dates';
|
||||
} from '../../../src/modules/dates';
|
||||
|
||||
describe('tickMultiFormat', () => {
|
||||
it('is a function', () => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { it, describe } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import { unitToRadius } from '../../../javascripts/modules/geo';
|
||||
import { unitToRadius } from '../../../src/modules/geo';
|
||||
|
||||
const METER_TO_MILE = 1609.34;
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { it, describe } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import sandboxedEval from '../../../javascripts/modules/sandbox';
|
||||
import sandboxedEval from '../../../src/modules/sandbox';
|
||||
|
||||
describe('sandboxedEval', () => {
|
||||
it('works like a basic eval', () => {
|
||||
|
|
|
@ -4,7 +4,7 @@ import {
|
|||
tryNumify, slugify, formatSelectOptionsForRange, d3format,
|
||||
d3FormatPreset, d3TimeFormatPreset, defaultNumberFormatter,
|
||||
mainMetric,
|
||||
} from '../../../javascripts/modules/utils';
|
||||
} from '../../../src/modules/utils';
|
||||
|
||||
describe('utils', () => {
|
||||
it('tryNumify works as expected', () => {
|
||||
|
|
|
@ -5,7 +5,7 @@ import { describe, it } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
|
||||
import { user } from './fixtures';
|
||||
import App from '../../../javascripts/profile/components/App';
|
||||
import App from '../../../src/profile/components/App';
|
||||
|
||||
describe('App', () => {
|
||||
const mockedProps = {
|
||||
|
|
|
@ -3,8 +3,8 @@ import { mount } from 'enzyme';
|
|||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
import { user } from './fixtures';
|
||||
import CreatedContent from '../../../javascripts/profile/components/CreatedContent';
|
||||
import TableLoader from '../../../javascripts/profile/components/TableLoader';
|
||||
import CreatedContent from '../../../src/profile/components/CreatedContent';
|
||||
import TableLoader from '../../../src/profile/components/TableLoader';
|
||||
|
||||
|
||||
describe('CreatedContent', () => {
|
||||
|
|
|
@ -4,7 +4,7 @@ import { describe, it } from 'mocha';
|
|||
import sinon from 'sinon';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import EditableTable from '../../../javascripts/components/EditableTitle';
|
||||
import EditableTable from '../../../src/components/EditableTitle';
|
||||
|
||||
describe('EditableTitle', () => {
|
||||
const callback = sinon.spy();
|
||||
|
|
|
@ -4,8 +4,8 @@ import { describe, it } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
|
||||
import { user } from './fixtures';
|
||||
import Favorites from '../../../javascripts/profile/components/Favorites';
|
||||
import TableLoader from '../../../javascripts/profile/components/TableLoader';
|
||||
import Favorites from '../../../src/profile/components/Favorites';
|
||||
import TableLoader from '../../../src/profile/components/TableLoader';
|
||||
|
||||
describe('Favorites', () => {
|
||||
const mockedProps = {
|
||||
|
|
|
@ -4,8 +4,8 @@ import { describe, it } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
|
||||
import { user } from './fixtures';
|
||||
import RecentActivity from '../../../javascripts/profile/components/RecentActivity';
|
||||
import TableLoader from '../../../javascripts/profile/components/TableLoader';
|
||||
import RecentActivity from '../../../src/profile/components/RecentActivity';
|
||||
import TableLoader from '../../../src/profile/components/TableLoader';
|
||||
|
||||
|
||||
describe('RecentActivity', () => {
|
||||
|
|
|
@ -4,7 +4,7 @@ import { describe, it } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
|
||||
import { user, userNoPerms } from './fixtures';
|
||||
import Security from '../../../javascripts/profile/components/Security';
|
||||
import Security from '../../../src/profile/components/Security';
|
||||
|
||||
|
||||
describe('Security', () => {
|
||||
|
|
|
@ -6,7 +6,7 @@ import { describe, it } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
|
||||
import { user } from './fixtures';
|
||||
import UserInfo from '../../../javascripts/profile/components/UserInfo';
|
||||
import UserInfo from '../../../src/profile/components/UserInfo';
|
||||
|
||||
|
||||
describe('UserInfo', () => {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { describe, it } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
import { shallow } from 'enzyme';
|
||||
import AlertContainer from 'react-alert';
|
||||
import AlertsWrapper from '../../../javascripts/components/AlertsWrapper';
|
||||
import AlertsWrapper from '../../../src/components/AlertsWrapper';
|
||||
|
||||
describe('AlertsWrapper', () => {
|
||||
let wrapper;
|
||||
|
|
|
@ -7,9 +7,9 @@ import { describe, it } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
import sinon from 'sinon';
|
||||
|
||||
import App from '../../../javascripts/SqlLab/components/App';
|
||||
import TabbedSqlEditors from '../../../javascripts/SqlLab/components/TabbedSqlEditors';
|
||||
import { sqlLabReducer } from '../../../javascripts/SqlLab/reducers';
|
||||
import App from '../../../src/SqlLab/components/App';
|
||||
import TabbedSqlEditors from '../../../src/SqlLab/components/TabbedSqlEditors';
|
||||
import { sqlLabReducer } from '../../../src/SqlLab/reducers';
|
||||
|
||||
describe('App', () => {
|
||||
const middlewares = [thunk];
|
||||
|
|
|
@ -4,7 +4,7 @@ import { describe, it } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
|
||||
import { mockedActions, table } from './fixtures';
|
||||
import ColumnElement from '../../../javascripts/SqlLab/components/ColumnElement';
|
||||
import ColumnElement from '../../../src/SqlLab/components/ColumnElement';
|
||||
|
||||
|
||||
describe('ColumnElement', () => {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { describe, it } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
import { initialState } from './fixtures';
|
||||
|
||||
import CopyQueryTabUrl from '../../../javascripts/SqlLab/components/CopyQueryTabUrl';
|
||||
import CopyQueryTabUrl from '../../../src/SqlLab/components/CopyQueryTabUrl';
|
||||
|
||||
describe('CopyQueryTabUrl', () => {
|
||||
const mockedProps = {
|
||||
|
|
|
@ -4,8 +4,8 @@ import { mount, shallow } from 'enzyme';
|
|||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import HighlightedSql from '../../../javascripts/SqlLab/components/HighlightedSql';
|
||||
import ModalTrigger from '../../../javascripts/components/ModalTrigger';
|
||||
import HighlightedSql from '../../../src/SqlLab/components/HighlightedSql';
|
||||
import ModalTrigger from '../../../src/components/ModalTrigger';
|
||||
|
||||
|
||||
describe('HighlightedSql', () => {
|
||||
|
|
|
@ -3,7 +3,7 @@ import { shallow } from 'enzyme';
|
|||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import Link from '../../../javascripts/SqlLab/components/Link';
|
||||
import Link from '../../../src/SqlLab/components/Link';
|
||||
|
||||
describe('Link', () => {
|
||||
const mockedProps = {
|
||||
|
|
|
@ -6,7 +6,7 @@ import { describe, it } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
import sinon from 'sinon';
|
||||
|
||||
import QuerySearch from '../../../javascripts/SqlLab/components/QuerySearch';
|
||||
import QuerySearch from '../../../src/SqlLab/components/QuerySearch';
|
||||
|
||||
describe('QuerySearch', () => {
|
||||
const mockedProps = {
|
||||
|
|
|
@ -4,7 +4,7 @@ import { shallow } from 'enzyme';
|
|||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import QueryStateLabel from '../../../javascripts/SqlLab/components/QueryStateLabel';
|
||||
import QueryStateLabel from '../../../src/SqlLab/components/QueryStateLabel';
|
||||
|
||||
describe('SavedQuery', () => {
|
||||
const mockedProps = {
|
||||
|
|
|
@ -5,7 +5,7 @@ import { expect } from 'chai';
|
|||
import { Table } from 'reactable';
|
||||
|
||||
import { queries } from './fixtures';
|
||||
import QueryTable from '../../../javascripts/SqlLab/components/QueryTable';
|
||||
import QueryTable from '../../../src/SqlLab/components/QueryTable';
|
||||
|
||||
describe('QueryTable', () => {
|
||||
const mockedProps = {
|
||||
|
|
|
@ -5,9 +5,9 @@ import { expect } from 'chai';
|
|||
import sinon from 'sinon';
|
||||
|
||||
import { Alert, ProgressBar, Button } from 'react-bootstrap';
|
||||
import FilterableTable from '../../../javascripts/components/FilterableTable/FilterableTable';
|
||||
import VisualizeModal from '../../../javascripts/SqlLab/components/VisualizeModal';
|
||||
import ResultSet from '../../../javascripts/SqlLab/components/ResultSet';
|
||||
import FilterableTable from '../../../src/components/FilterableTable/FilterableTable';
|
||||
import VisualizeModal from '../../../src/SqlLab/components/VisualizeModal';
|
||||
import ResultSet from '../../../src/SqlLab/components/ResultSet';
|
||||
import { queries, stoppedQuery, runningQuery, cachedQuery } from './fixtures';
|
||||
|
||||
describe('ResultSet', () => {
|
||||
|
|
|
@ -3,8 +3,8 @@ import { FormControl } from 'react-bootstrap';
|
|||
import { shallow } from 'enzyme';
|
||||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
import SaveQuery from '../../../javascripts/SqlLab/components/SaveQuery';
|
||||
import ModalTrigger from '../../../javascripts/components/ModalTrigger';
|
||||
import SaveQuery from '../../../src/SqlLab/components/SaveQuery';
|
||||
import ModalTrigger from '../../../src/components/ModalTrigger';
|
||||
|
||||
describe('SavedQuery', () => {
|
||||
const mockedProps = {
|
||||
|
|
|
@ -6,8 +6,8 @@ import { expect } from 'chai';
|
|||
|
||||
import $ from 'jquery';
|
||||
import { table, defaultQueryEditor, databases, tables } from './fixtures';
|
||||
import SqlEditorLeftBar from '../../../javascripts/SqlLab/components/SqlEditorLeftBar';
|
||||
import TableElement from '../../../javascripts/SqlLab/components/TableElement';
|
||||
import SqlEditorLeftBar from '../../../src/SqlLab/components/SqlEditorLeftBar';
|
||||
import TableElement from '../../../src/SqlLab/components/TableElement';
|
||||
|
||||
global.notify = {
|
||||
error: () => {},
|
||||
|
|
|
@ -4,8 +4,8 @@ import { describe, it } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
|
||||
import { initialState, queries, table } from './fixtures';
|
||||
import SqlEditor from '../../../javascripts/SqlLab/components/SqlEditor';
|
||||
import SqlEditorLeftBar from '../../../javascripts/SqlLab/components/SqlEditorLeftBar';
|
||||
import SqlEditor from '../../../src/SqlLab/components/SqlEditor';
|
||||
import SqlEditorLeftBar from '../../../src/SqlLab/components/SqlEditorLeftBar';
|
||||
|
||||
describe('SqlEditor', () => {
|
||||
const mockedProps = {
|
||||
|
|
|
@ -4,7 +4,7 @@ import { expect } from 'chai';
|
|||
import { describe, it } from 'mocha';
|
||||
import { shallow } from 'enzyme';
|
||||
|
||||
import TabStatusIcon from '../../../javascripts/SqlLab/components/TabStatusIcon';
|
||||
import TabStatusIcon from '../../../src/SqlLab/components/TabStatusIcon';
|
||||
|
||||
function setup() {
|
||||
const onClose = sinon.spy();
|
||||
|
|
|
@ -10,8 +10,8 @@ import { expect } from 'chai';
|
|||
import sinon from 'sinon';
|
||||
|
||||
import { table, initialState } from './fixtures';
|
||||
import TabbedSqlEditors from '../../../javascripts/SqlLab/components/TabbedSqlEditors';
|
||||
import SqlEditor from '../../../javascripts/SqlLab/components/SqlEditor';
|
||||
import TabbedSqlEditors from '../../../src/SqlLab/components/TabbedSqlEditors';
|
||||
import SqlEditor from '../../../src/SqlLab/components/SqlEditor';
|
||||
|
||||
describe('TabbedSqlEditors', () => {
|
||||
const middlewares = [thunk];
|
||||
|
|
|
@ -3,9 +3,9 @@ import { mount, shallow } from 'enzyme';
|
|||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import Link from '../../../javascripts/SqlLab/components/Link';
|
||||
import TableElement from '../../../javascripts/SqlLab/components/TableElement';
|
||||
import ColumnElement from '../../../javascripts/SqlLab/components/ColumnElement';
|
||||
import Link from '../../../src/SqlLab/components/Link';
|
||||
import TableElement from '../../../src/SqlLab/components/TableElement';
|
||||
import ColumnElement from '../../../src/SqlLab/components/ColumnElement';
|
||||
import { mockedActions, table } from './fixtures';
|
||||
|
||||
describe('TableElement', () => {
|
||||
|
|
|
@ -4,8 +4,8 @@ import { describe, it, beforeEach } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
import sinon from 'sinon';
|
||||
|
||||
import Timer from '../../../javascripts/components/Timer';
|
||||
import { now } from '../../../javascripts/modules/dates';
|
||||
import Timer from '../../../src/components/Timer';
|
||||
import { now } from '../../../src/modules/dates';
|
||||
|
||||
|
||||
describe('Timer', () => {
|
||||
|
|
|
@ -11,11 +11,11 @@ import sinon from 'sinon';
|
|||
import $ from 'jquery';
|
||||
import shortid from 'shortid';
|
||||
import { queries } from './fixtures';
|
||||
import { sqlLabReducer } from '../../../javascripts/SqlLab/reducers';
|
||||
import * as actions from '../../../javascripts/SqlLab/actions';
|
||||
import { VISUALIZE_VALIDATION_ERRORS } from '../../../javascripts/SqlLab/constants';
|
||||
import VisualizeModal from '../../../javascripts/SqlLab/components/VisualizeModal';
|
||||
import * as exploreUtils from '../../../javascripts/explore/exploreUtils';
|
||||
import { sqlLabReducer } from '../../../src/SqlLab/reducers';
|
||||
import * as actions from '../../../src/SqlLab/actions';
|
||||
import { VISUALIZE_VALIDATION_ERRORS } from '../../../src/SqlLab/constants';
|
||||
import VisualizeModal from '../../../src/SqlLab/components/VisualizeModal';
|
||||
import * as exploreUtils from '../../../src/explore/exploreUtils';
|
||||
|
||||
global.notify = {
|
||||
info: () => {},
|
||||
|
|
|
@ -3,7 +3,7 @@ import { it, describe } from 'mocha';
|
|||
import { expect } from 'chai';
|
||||
import sinon from 'sinon';
|
||||
import $ from 'jquery';
|
||||
import * as actions from '../../../javascripts/SqlLab/actions';
|
||||
import * as actions from '../../../src/SqlLab/actions';
|
||||
import { query } from './fixtures';
|
||||
|
||||
describe('async actions', () => {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import sinon from 'sinon';
|
||||
import * as actions from '../../../javascripts/SqlLab/actions';
|
||||
import * as actions from '../../../src/SqlLab/actions';
|
||||
|
||||
export const mockedActions = sinon.stub(Object.assign({}, actions));
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import * as r from '../../../javascripts/SqlLab/reducers';
|
||||
import * as actions from '../../../javascripts/SqlLab/actions';
|
||||
import * as r from '../../../src/SqlLab/reducers';
|
||||
import * as actions from '../../../src/SqlLab/actions';
|
||||
import { alert, table, initialState } from './fixtures';
|
||||
|
||||
describe('sqlLabReducer', () => {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { it, describe } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
import { isTruthy } from '../../../javascripts/utils/common';
|
||||
import { isTruthy } from '../../../src/utils/common';
|
||||
|
||||
describe('utils/common', () => {
|
||||
describe('isTruthy', () => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import { formatLabel } from '../../../visualizations/nvd3_vis';
|
||||
import { formatLabel } from '../../../src/visualizations/nvd3_vis';
|
||||
|
||||
describe('nvd3 viz', () => {
|
||||
const verboseMap = {
|
||||
|
|
|
@ -4,7 +4,7 @@ import { shallow } from 'enzyme';
|
|||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import App from '../../../javascripts/welcome/App';
|
||||
import App from '../../../src/welcome/App';
|
||||
|
||||
describe('App', () => {
|
||||
const mockedProps = {};
|
||||
|
|
|
@ -3,7 +3,7 @@ import { mount } from 'enzyme';
|
|||
import { describe, it } from 'mocha';
|
||||
import { expect } from 'chai';
|
||||
|
||||
import DashboardTable from '../../../javascripts/welcome/DashboardTable';
|
||||
import DashboardTable from '../../../src/welcome/DashboardTable';
|
||||
|
||||
const $ = window.$ = require('jquery');
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue