webamp/js/__tests__/EqGraph--test.js
Jordan Eldredge 7dd1bb8858 Enable react linting rules, fix linting errors
Also fix lint command in `package.json`
2016-11-28 20:24:12 -08:00

28 lines
630 B
JavaScript

jest.unmock('../components/EqGraph.jsx');
import {
roundToEven
} from '../components/EqGraph.jsx';
describe('roundToEven', () => {
it('leaves even numbers as is', () => {
const actual = roundToEven(4);
const expected = 4;
expect(actual).toEqual(expected);
});
it('handles zero', () => {
const actual = roundToEven(0);
const expected = 0;
expect(actual).toEqual(expected);
});
it('handles odd numbers', () => {
const actual = roundToEven(3);
const expected = 4;
expect(actual).toEqual(expected);
});
});
describe('getY', () => {
it('gives the first sprite', () => {
});
});