Skip to content

Commit

Permalink
serialization test
Browse files Browse the repository at this point in the history
  • Loading branch information
benesjan committed Oct 26, 2023
1 parent 2dd7ff8 commit faded28
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions yarn-project/types/src/notes/note_spending_info_dao.test.ts
Original file line number Diff line number Diff line change
@@ -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);
});
});

0 comments on commit faded28

Please sign in to comment.