@dhyasama/totem-models 6.3.5 → 6.3.7
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/lib/Organization.js +18 -30
- package/package-lock.json +1829 -0
- package/package.json +1 -1
- package/test/Organization.js +10 -14
package/package.json
CHANGED
package/test/Organization.js
CHANGED
|
@@ -1188,20 +1188,16 @@ describe('Organization', function() {
|
|
|
1188
1188
|
|
|
1189
1189
|
it('gets deal columns for a customer', function(done) {
|
|
1190
1190
|
|
|
1191
|
-
var
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
columns[4].name.should.equal('Fundraise Valuation');
|
|
1202
|
-
columns[4].order.should.equal(4);
|
|
1203
|
-
columns[5].name.should.equal('Test Field Last');
|
|
1204
|
-
columns[5].order.should.equal(5);
|
|
1191
|
+
var fields = customer1.customer.deals.fields;
|
|
1192
|
+
fields.length.should.equal(4);
|
|
1193
|
+
fields[0].name.should.equal('Test Field 2');
|
|
1194
|
+
fields[0].order.should.equal(0);
|
|
1195
|
+
fields[1].name.should.equal('Fundraise Amount');
|
|
1196
|
+
fields[1].order.should.equal(1);
|
|
1197
|
+
fields[2].name.should.equal('Fundraise Valuation');
|
|
1198
|
+
fields[2].order.should.equal(2);
|
|
1199
|
+
fields[3].name.should.equal('Test Field Last');
|
|
1200
|
+
fields[3].order.should.equal(3);
|
|
1205
1201
|
|
|
1206
1202
|
return done();
|
|
1207
1203
|
|