@dhyasama/totem-models 6.8.7 → 6.8.8
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/package-lock.json +1829 -0
- package/package.json +1 -1
- package/test/Organization.js +43 -11
package/package.json
CHANGED
package/test/Organization.js
CHANGED
|
@@ -135,6 +135,14 @@ describe('Organization', function() {
|
|
|
135
135
|
|
|
136
136
|
before(function (done) {
|
|
137
137
|
|
|
138
|
+
//action
|
|
139
|
+
//raise
|
|
140
|
+
//valuation
|
|
141
|
+
//sources
|
|
142
|
+
//referrers
|
|
143
|
+
//chairs
|
|
144
|
+
|
|
145
|
+
|
|
138
146
|
customer1 = new Organization();
|
|
139
147
|
customer1.name = 'New Customer';
|
|
140
148
|
customer1.slug = 'new-customer';
|
|
@@ -164,25 +172,35 @@ describe('Organization', function() {
|
|
|
164
172
|
}
|
|
165
173
|
],
|
|
166
174
|
standardFields: {
|
|
167
|
-
|
|
175
|
+
action: {
|
|
168
176
|
active: true,
|
|
169
177
|
showOnList: true,
|
|
170
178
|
order: 3
|
|
171
179
|
},
|
|
180
|
+
raise: {
|
|
181
|
+
active: true,
|
|
182
|
+
showOnList: true,
|
|
183
|
+
order: 4
|
|
184
|
+
},
|
|
185
|
+
valuation: {
|
|
186
|
+
active: true,
|
|
187
|
+
showOnList: true,
|
|
188
|
+
order: 5
|
|
189
|
+
},
|
|
172
190
|
sources: {
|
|
173
191
|
active: true,
|
|
174
192
|
showOnList: false,
|
|
175
|
-
order:
|
|
193
|
+
order: 6
|
|
176
194
|
},
|
|
177
195
|
referrers: {
|
|
178
196
|
active: true,
|
|
179
197
|
showOnList: false,
|
|
180
|
-
order:
|
|
198
|
+
order: 7
|
|
181
199
|
},
|
|
182
|
-
|
|
200
|
+
chairs: {
|
|
183
201
|
active: true,
|
|
184
202
|
showOnList: false,
|
|
185
|
-
order:
|
|
203
|
+
order: 8
|
|
186
204
|
},
|
|
187
205
|
},
|
|
188
206
|
customFields: [
|
|
@@ -1190,7 +1208,14 @@ describe('Organization', function() {
|
|
|
1190
1208
|
|
|
1191
1209
|
var fields = customer1.customer.deals.fields;
|
|
1192
1210
|
|
|
1193
|
-
fields.length.should.equal(
|
|
1211
|
+
fields.length.should.equal(5);
|
|
1212
|
+
|
|
1213
|
+
//action
|
|
1214
|
+
//raise
|
|
1215
|
+
//valuation
|
|
1216
|
+
//sources
|
|
1217
|
+
//referrers
|
|
1218
|
+
//chairs
|
|
1194
1219
|
|
|
1195
1220
|
should.exist(fields[0].name);
|
|
1196
1221
|
should.exist(fields[0].key);
|
|
@@ -1205,25 +1230,32 @@ describe('Organization', function() {
|
|
|
1205
1230
|
should.exist(fields[1].order);
|
|
1206
1231
|
should.exist(fields[1].colspan);
|
|
1207
1232
|
should.exist(fields[1].showOnFilter);
|
|
1208
|
-
fields[1].name.should.equal('
|
|
1233
|
+
fields[1].name.should.equal('Next Steps');
|
|
1209
1234
|
fields[1].order.should.equal(1);
|
|
1210
1235
|
|
|
1211
1236
|
should.exist(fields[2].name);
|
|
1212
1237
|
should.exist(fields[2].order);
|
|
1213
1238
|
should.exist(fields[2].colspan);
|
|
1214
1239
|
should.exist(fields[2].showOnFilter);
|
|
1215
|
-
fields[2].name.should.equal('
|
|
1240
|
+
fields[2].name.should.equal('Raise');
|
|
1216
1241
|
fields[2].order.should.equal(2);
|
|
1217
1242
|
|
|
1218
1243
|
should.exist(fields[3].name);
|
|
1219
|
-
should.exist(fields[3].key);
|
|
1220
1244
|
should.exist(fields[3].order);
|
|
1221
1245
|
should.exist(fields[3].colspan);
|
|
1222
1246
|
should.exist(fields[3].showOnFilter);
|
|
1223
|
-
|
|
1224
|
-
fields[3].name.should.equal('Test Field Last');
|
|
1247
|
+
fields[3].name.should.equal('Valuation');
|
|
1225
1248
|
fields[3].order.should.equal(3);
|
|
1226
1249
|
|
|
1250
|
+
should.exist(fields[4].name);
|
|
1251
|
+
should.exist(fields[4].key);
|
|
1252
|
+
should.exist(fields[4].order);
|
|
1253
|
+
should.exist(fields[4].colspan);
|
|
1254
|
+
should.exist(fields[4].showOnFilter);
|
|
1255
|
+
should.exist(fields[4].options);
|
|
1256
|
+
fields[4].name.should.equal('Test Field Last');
|
|
1257
|
+
fields[4].order.should.equal(4);
|
|
1258
|
+
|
|
1227
1259
|
return done();
|
|
1228
1260
|
|
|
1229
1261
|
|