InstructionLinkNode.test.ts 398 B

12345678910111213
  1. import { expect, test } from 'vitest';
  2. import { instructionLinkNode } from '../../src';
  3. test('it returns the right node kind', () => {
  4. const node = instructionLinkNode('transferTokens');
  5. expect(node.kind).toBe('instructionLinkNode');
  6. });
  7. test('it returns a frozen object', () => {
  8. const node = instructionLinkNode('transferTokens');
  9. expect(Object.isFrozen(node)).toBe(true);
  10. });