@dhyasama/totem-models 6.3.8 → 6.4.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/lib/Organization.js +14 -7
- package/package-lock.json +1829 -0
- package/package.json +1 -1
- package/test/Organization.js +25 -0
package/package.json
CHANGED
package/test/Organization.js
CHANGED
|
@@ -1189,13 +1189,38 @@ describe('Organization', function() {
|
|
|
1189
1189
|
it('gets deal columns for a customer', function(done) {
|
|
1190
1190
|
|
|
1191
1191
|
var fields = customer1.customer.deals.fields;
|
|
1192
|
+
|
|
1192
1193
|
fields.length.should.equal(4);
|
|
1194
|
+
|
|
1195
|
+
should.exist(fields[0].name);
|
|
1196
|
+
should.exist(fields[0].key);
|
|
1197
|
+
should.exist(fields[0].order);
|
|
1198
|
+
should.exist(fields[0].colspan);
|
|
1199
|
+
should.exist(fields[0].showOnFilter);
|
|
1200
|
+
should.exist(fields[0].options);
|
|
1193
1201
|
fields[0].name.should.equal('Test Field 2');
|
|
1194
1202
|
fields[0].order.should.equal(0);
|
|
1203
|
+
|
|
1204
|
+
should.exist(fields[1].name);
|
|
1205
|
+
should.exist(fields[1].order);
|
|
1206
|
+
should.exist(fields[1].colspan);
|
|
1207
|
+
should.exist(fields[1].showOnFilter);
|
|
1195
1208
|
fields[1].name.should.equal('Fundraise Amount');
|
|
1196
1209
|
fields[1].order.should.equal(1);
|
|
1210
|
+
|
|
1211
|
+
should.exist(fields[2].name);
|
|
1212
|
+
should.exist(fields[2].order);
|
|
1213
|
+
should.exist(fields[2].colspan);
|
|
1214
|
+
should.exist(fields[2].showOnFilter);
|
|
1197
1215
|
fields[2].name.should.equal('Fundraise Valuation');
|
|
1198
1216
|
fields[2].order.should.equal(2);
|
|
1217
|
+
|
|
1218
|
+
should.exist(fields[3].name);
|
|
1219
|
+
should.exist(fields[3].key);
|
|
1220
|
+
should.exist(fields[3].order);
|
|
1221
|
+
should.exist(fields[3].colspan);
|
|
1222
|
+
should.exist(fields[3].showOnFilter);
|
|
1223
|
+
should.exist(fields[3].options);
|
|
1199
1224
|
fields[3].name.should.equal('Test Field Last');
|
|
1200
1225
|
fields[3].order.should.equal(3);
|
|
1201
1226
|
|