diff --git a/yarn-project/types/src/notes/note_spending_info_dao.test.ts b/yarn-project/types/src/notes/note_spending_info_dao.test.ts new file mode 100644 index 000000000000..deb07f9fc77a --- /dev/null +++ b/yarn-project/types/src/notes/note_spending_info_dao.test.ts @@ -0,0 +1,10 @@ +import { randomNoteSpendingInfoDao } from '../mocks.js'; +import { NoteSpendingInfoDao } from './note_spending_info_dao.js'; + +describe('note_spending_info', () => { + it('convert to and from buffer', () => { + const noteSpendingInfoDao = randomNoteSpendingInfoDao(); + const buf = noteSpendingInfoDao.toBuffer(); + expect(NoteSpendingInfoDao.fromBuffer(buf)).toEqual(noteSpendingInfoDao); + }); +});