Move files next to file under test

This commit is contained in:
Jordan Eldredge 2017-01-17 15:27:23 -08:00
parent 06d7beb920
commit 280c4446f1
12 changed files with 13 additions and 11 deletions

View file

@ -19,7 +19,8 @@
"browser": true,
"node": true,
"amd": true,
"es6": true
"es6": true,
"jest": true
},
"rules": {

View file

@ -1,7 +1,7 @@
import {
spriteNumber,
spriteOffsets
} from '../components/Band';
} from './Band';
describe('spriteNumber', () => {
it('gives the first sprite', () => {

View file

@ -1,4 +1,4 @@
import {characterClassName} from '../components/Character';
import {characterClassName} from './Character';
describe('characterClassName', () => {
it('is not case sensitive', () => {

View file

@ -1,6 +1,6 @@
import {
roundToEven
} from '../components/EqGraph';
} from './EqGraph';
describe('roundToEven', () => {
it('leaves even numbers as is', () => {

View file

@ -23,7 +23,7 @@ import {Provider} from 'react-redux';
import renderer from 'react-test-renderer';
import getStore from '../store';
import MainWindow from '../components/MainWindow';
import MainWindow from './MainWindow';
describe('MainWindow', () => {
let store;

View file

@ -7,7 +7,7 @@ import {
stepOffset,
negativePixels,
loopText
} from '../components/Marquee';
} from './Marquee';
describe('getBalanceText', () => {
it('treats negative numbers as left', () => {

View file

@ -1,9 +1,9 @@
import {userInput} from '../reducers';
import {userInput} from './reducers';
import {
SET_FOCUS,
SET_SCRUB_POSITION,
UNSET_FOCUS
} from '../actionTypes';
} from './actionTypes';
describe('userInput reducer', () => {
const state = userInput();

View file

@ -1,4 +1,4 @@
import skinSprites from '../skinSprites';
import skinSprites from './skinSprites';
const getNames = (arr) => arr.map((item) => item.name);

View file

@ -9,7 +9,7 @@ import {
overlapX,
snapWithin,
applySnap
} from '../snapUtils';
} from './snapUtils';
describe('side functions', () => {
const box = {x: 10, y: 15, width: 50, height: 100};

View file

@ -6,7 +6,7 @@ import {
clamp,
parseViscolors,
parseIni
} from '../utils';
} from './utils';
const fixture = (filename) => (
fs.readFileSync(`./js/__tests__/fixtures/${filename}`).toString()

View file

@ -66,6 +66,7 @@
"redux-thunk": "^2.1.0"
},
"jest": {
"testRegex": "\\.test\\.js$",
"moduleNameMapper": {
"\\.css$": "<rootDir>/js/__mocks__/styleMock.js"
}