nexxtway/react-rainbow

View on GitHub
src/components/Calendar/helpers/__test__/addDays.spec.js

Summary

Maintainability
A
1 hr
Test Coverage
import addDays from '../addDays';

describe('addDays', () => {
    it('should return a date 3 days after', () => {
        const date = new Date(2019, 2, 1);
        expect(addDays(date, 3).getDate()).toBe(4);
    });
});