mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-20 16:49:52 +00:00
Move files next to file under test
This commit is contained in:
parent
06d7beb920
commit
280c4446f1
12 changed files with 13 additions and 11 deletions
|
|
@ -19,7 +19,8 @@
|
|||
"browser": true,
|
||||
"node": true,
|
||||
"amd": true,
|
||||
"es6": true
|
||||
"es6": true,
|
||||
"jest": true
|
||||
},
|
||||
|
||||
"rules": {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import {
|
||||
spriteNumber,
|
||||
spriteOffsets
|
||||
} from '../components/Band';
|
||||
} from './Band';
|
||||
|
||||
describe('spriteNumber', () => {
|
||||
it('gives the first sprite', () => {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import {characterClassName} from '../components/Character';
|
||||
import {characterClassName} from './Character';
|
||||
|
||||
describe('characterClassName', () => {
|
||||
it('is not case sensitive', () => {
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import {
|
||||
roundToEven
|
||||
} from '../components/EqGraph';
|
||||
} from './EqGraph';
|
||||
|
||||
describe('roundToEven', () => {
|
||||
it('leaves even numbers as is', () => {
|
||||
|
|
@ -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;
|
||||
|
|
@ -7,7 +7,7 @@ import {
|
|||
stepOffset,
|
||||
negativePixels,
|
||||
loopText
|
||||
} from '../components/Marquee';
|
||||
} from './Marquee';
|
||||
|
||||
describe('getBalanceText', () => {
|
||||
it('treats negative numbers as left', () => {
|
||||
|
|
@ -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();
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import skinSprites from '../skinSprites';
|
||||
import skinSprites from './skinSprites';
|
||||
|
||||
const getNames = (arr) => arr.map((item) => item.name);
|
||||
|
||||
|
|
@ -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};
|
||||
|
|
@ -6,7 +6,7 @@ import {
|
|||
clamp,
|
||||
parseViscolors,
|
||||
parseIni
|
||||
} from '../utils';
|
||||
} from './utils';
|
||||
|
||||
const fixture = (filename) => (
|
||||
fs.readFileSync(`./js/__tests__/fixtures/${filename}`).toString()
|
||||
|
|
@ -66,6 +66,7 @@
|
|||
"redux-thunk": "^2.1.0"
|
||||
},
|
||||
"jest": {
|
||||
"testRegex": "\\.test\\.js$",
|
||||
"moduleNameMapper": {
|
||||
"\\.css$": "<rootDir>/js/__mocks__/styleMock.js"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue