Skip to content

Commit

Permalink
cleanup imports to make them consistent across codebase
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartin-sul committed Jun 22, 2019
1 parent 64fb743 commit 071f595
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion __tests__/actions/index.test.js
@@ -1,6 +1,6 @@
// Copyright 2018 Stanford University see LICENSE for license

import * as actions from '../../src/actions/index'
import * as actions from 'actions/index'

describe('setItems()', () => {
it('creates SET_ITEMS action', () => {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/Footer.test.js
Expand Up @@ -2,7 +2,7 @@

import React from 'react'
import { shallow } from 'enzyme'
import Footer from '../../src/components/Footer'
import Footer from 'components/Footer'

describe('<Footer />', () => {
const wrapper = shallow(<Footer />)
Expand Down
6 changes: 3 additions & 3 deletions __tests__/components/LoginPanel.test.js
Expand Up @@ -5,9 +5,9 @@ import { shallow } from 'enzyme'
import {
CognitoAccessToken, CognitoIdToken, CognitoRefreshToken, CognitoUserSession,
} from 'amazon-cognito-identity-js'
import LoginPanel from '../../src/components/LoginPanel'
import Config from '../../src/Config'
import CognitoUtils from '../../src/CognitoUtils'
import LoginPanel from 'components/LoginPanel'
import Config from 'Config'
import CognitoUtils from 'CognitoUtils'

global.alert = jest.fn().mockImplementationOnce(() => {})

Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/RootComponent.test.js
Expand Up @@ -5,7 +5,7 @@ import React from 'react'
import { shallow } from 'enzyme'
import { OffCanvas } from 'react-offcanvas'
import { Provider } from 'react-redux'
import RootContainer from '../../src/components/RootContainer'
import RootContainer from 'components/RootContainer'

describe('<RootComponent />', () => {
const wrapper = shallow(<RootContainer/>)
Expand Down
6 changes: 3 additions & 3 deletions __tests__/components/editor/ResourceTemplate.test.js
Expand Up @@ -2,9 +2,9 @@

import React from 'react'
import { shallow } from 'enzyme'
import Config from '../../../src/Config'
import ResourceTemplate from '../../../src/components/editor/ResourceTemplate'
import ResourceTemplateForm from '../../../src/components/editor/ResourceTemplateForm'
import Config from 'Config'
import ResourceTemplate from 'components/editor/ResourceTemplate'
import ResourceTemplateForm from 'components/editor/ResourceTemplateForm'

describe('<ResourceTemplate />', () => {
const mockResponse = (status, statusText, response) => new Response(response, {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/components/editor/ResourceTemplateForm.test.js
Expand Up @@ -4,7 +4,7 @@ import React from 'react'
import 'jsdom-global/register'
import { shallow } from 'enzyme'
import shortid from 'shortid'
import { ResourceTemplateForm } from '../../../src/components/editor/ResourceTemplateForm'
import { ResourceTemplateForm } from 'components/editor/ResourceTemplateForm'

describe('<ResourceTemplateForm /> functional testing', () => {
const basicRt = { resourceURI: 'http://schema.org/name' }
Expand Down
2 changes: 1 addition & 1 deletion __tests__/integration/loginHelper.js
@@ -1,6 +1,6 @@
// Copyright 2019 Stanford University see LICENSE for license

import Config from '../../src/Config'
import Config from 'Config'

export async function testUserLogin() {
jest.setTimeout(60000) // Takes around 10s in practice, but be generous, just in case
Expand Down
2 changes: 1 addition & 1 deletion __tests__/reducers/authenticate.test.js
@@ -1,6 +1,6 @@
// Copyright 2018 Stanford University see LICENSE for license

import authenticate from '../../src/reducers/authenticate'
import authenticate from 'reducers/authenticate'

describe('changing the reducer state', () => {
it('should handle initial state', () => {
Expand Down
2 changes: 1 addition & 1 deletion __tests__/reducers/lookups.test.js
@@ -1,6 +1,6 @@
// Copyright 2018 Stanford University see LICENSE for license

import lookups from '../../src/reducers/lookups'
import lookups from 'reducers/lookups'

describe('changing the reducer state', () => {
const itemOne = { id: 'http://uri1', uri: 'http://uri1', label: 'selection1' }
Expand Down
2 changes: 1 addition & 1 deletion src/components/home/Header.jsx
Expand Up @@ -3,7 +3,7 @@
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router-dom'
import SinopiaLogo from '../../styles/sinopia-logo.png'
import SinopiaLogo from 'styles/sinopia-logo.png'
import Config from 'Config'

class Header extends Component {
Expand Down

0 comments on commit 071f595

Please sign in to comment.