mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-24 02:36:00 +00:00
26 lines
587 B
JavaScript
26 lines
587 B
JavaScript
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', () => {
|
|
});
|
|
});
|