all files / documents/database/operations/internal/ operation.js

100% Statements 7/7
100% Branches 2/2
100% Functions 5/5
100% Lines 7/7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29          10× 10× 10×       15×             13×       24×          
import Operation from '../operation';
 
export default class InternalDocumentOperation extends Operation {
 
  constructor(internal, opts) {
    super();
    this.internal = internal;
    this.opts = opts || {};
  }
 
  get db() {
    return this.internal.database;
  }
 
  get docs() {
    return this.db.get('documents');
  }
 
  withPropertyChanges(cb) {
    return this.internal.withPropertyChanges(cb, true);
  }
 
  get state() {
    return this.internal.state;
  }
 
}