Шутка проверьте бинарный
expect(BufferDataFromDatabase).toEqual(expect.any(Buffer))
Depressed Dunlin
expect(BufferDataFromDatabase).toEqual(expect.any(Buffer))