@dhyasama/totem-models 7.57.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.npmignore +14 -0
- package/helpers.js +89 -0
- package/index.js +0 -1
- package/lib/Account.js +125 -79
- package/lib/Activity.js +0 -2
- package/lib/CalendarEvent.js +1 -7
- package/lib/CapTable.js +0 -1
- package/lib/Deal.js +215 -151
- package/lib/Document.js +57 -56
- package/lib/Financials.js +115 -172
- package/lib/Flag.js +37 -14
- package/lib/Fund.js +6 -33
- package/lib/Interaction.js +79 -32
- package/lib/Investment.js +4 -10
- package/lib/LimitedPartner.js +303 -634
- package/lib/List.js +105 -147
- package/lib/Message.js +100 -51
- package/lib/News.js +1 -53
- package/lib/Note.js +60 -66
- package/lib/Organization.js +470 -645
- package/lib/Person.js +342 -650
- package/lib/Round.js +191 -134
- package/lib/Snapshot.js +3 -5
- package/lib/Webhook.js +1 -4
- package/package-lock.json +1927 -0
- package/package.json +2 -3
- package/test/Account.js +53 -38
- package/test/Deal.js +14 -30
- package/test/Document.js +51 -50
- package/test/Financials.js +5 -3
- package/test/Flag.js +18 -14
- package/test/Interaction.js +1 -31
- package/test/Investment.js +2 -3
- package/test/LimitedPartner.js +399 -554
- package/test/List.js +24 -29
- package/test/Message.js +7 -46
- package/test/News.js +12 -29
- package/test/Note.js +23 -22
- package/test/Organization.js +33 -307
- package/test/Person.js +6 -253
- package/test/Round.js +11 -11
- package/lib/Sync.js +0 -48
package/test/Investment.js
CHANGED
|
@@ -96,7 +96,7 @@ describe('Investments', function() {
|
|
|
96
96
|
|
|
97
97
|
});
|
|
98
98
|
|
|
99
|
-
it
|
|
99
|
+
it('removes investment reference from round when deleted', function(done) {
|
|
100
100
|
|
|
101
101
|
var inv1 = new Investment({
|
|
102
102
|
customer: customerid,
|
|
@@ -137,8 +137,7 @@ describe('Investments', function() {
|
|
|
137
137
|
|
|
138
138
|
should.not.exist(err);
|
|
139
139
|
should.exist(toot);
|
|
140
|
-
|
|
141
|
-
toot.vehicles[0].investments.length.should.equal(0);
|
|
140
|
+
toot.vehicles.length.should.equal(0);
|
|
142
141
|
|
|
143
142
|
done();
|
|
144
143
|
|