Showing 1 of 3 files from the diff.

@@ -85,6 +85,9 @@
Loading
85 85
    if (!parent) {
86 86
      throw new Error('Cannot add to a Relation without a parent');
87 87
    }
88 +
    if (objects.length === 0) {
89 +
      return parent;
90 +
    }
88 91
    parent.set(this.key, change);
89 92
    this.targetClassName = change._targetClassName;
90 93
    return parent;
@@ -104,6 +107,9 @@
Loading
104 107
    if (!this.parent) {
105 108
      throw new Error('Cannot remove from a Relation without a parent');
106 109
    }
110 +
    if (objects.length === 0) {
111 +
      return;
112 +
    }
107 113
    this.parent.set(this.key, change);
108 114
    this.targetClassName = change._targetClassName;
109 115
  }
Files Coverage
src 92.38%
Project Totals (54 files) 92.38%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading