text: // eslint-disable-next-line node/no-missing-require
  const timestamp = require('utils/Timestamp.js')
  
  describe('[TIMESTAMP] relativeDays', () => {
    it('relativeDays 2020-01-01, nextDay', async () => {
      const ts = timestamp.parseTimestamp('2020-01-01')
      const tests = timestamp.relativeDays(ts, timestamp.nextDay)
      expect(tests.year).toBe(2020)
      expect(tests.month).toBe(1)
      expect(tests.day).toBe(2)
    })
  
    it('relativeDays 2020-01-01, prevDay', async () => {
      const ts = timestamp.parseTimestamp('2020-01-01')
      const tests = timestamp.moveRelativeDays(ts, timestamp.prevDay)
      expect(tests.year).toBe(2019)
      expect(tests.month).toBe(12)
      expect(tests.day).toBe(31)
    })
  
    it('relativeDays 2020-01-01, nextDay, days=3', async () => {
      const ts = timestamp.parseTimestamp('2020-01-01')
      const tests = timestamp.relativeDays(ts, timestamp.nextDay, 3)
      expect(tests.year).toBe(2020)
      expect(tests.month).toBe(1)
      expect(tests.day).toBe(4)
    })
  
    it('relativeDays 2020-01-01, prevDay, days=3', async () => {
      const ts = timestamp.parseTimestamp('2020-01-01')
      const tests = timestamp.relativeDays(ts, timestamp.prevDay, 3)
      expect(tests.year).toBe(2019)
      expect(tests.month).toBe(12)
      expect(tests.day).toBe(29)
    })
  
    it('relativeDays 2020-01-01, nextDay, days=1, restricted weekdays', async () => {
      const ts = timestamp.parseTimestamp('2020-01-01')
      const tests = timestamp.relativeDays(ts, timestamp.nextDay, 1, [4, 5])
      expect(tests.year).toBe(2020)
      expect(tests.month).toBe(1)
      expect(tests.day).toBe(2)
    })
  
    it('relativeDays 2020-01-01, prevDay, days=1, restricted weekdays', async () => {
      const ts = timestamp.parseTimestamp('2020-01-01')
      const tests = timestamp.relativeDays(ts, timestamp.prevDay, 1, [4, 5])
      expect(tests.year).toBe(2019)
      expect(tests.month).toBe(12)
      expect(tests.day).toBe(27)
    })
  })
  