All files / json-crdt-extensions/mval MvalNode.ts

85.71% Statements 6/7
100% Branches 0/0
66.66% Functions 2/3
85.71% Lines 6/7

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1745x 45x 45x     45x 10x             16x      
import {MNEMONIC} from './constants';
import {ExtNode} from '../../json-crdt/extensions/ExtNode';
import {ExtensionId} from '../constants';
import type {ArrNode} from '../../json-crdt/nodes/arr/ArrNode';
 
export class MvalNode extends ExtNode<ArrNode> {
  public readonly extId = ExtensionId.mval;
 
  public name(): string {
    return MNEMONIC;
  }
 
  public view(): unknown[] {
    return this.data.view();
  }
}