@dhyasama/totem-models 6.17.2 → 6.18.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 +53 -0
- package/lib/Person.js +53 -0
- package/package-lock.json +1829 -0
- package/package.json +1 -1
- package/test/Organization.js +6 -6
package/package.json
CHANGED
package/test/Organization.js
CHANGED
|
@@ -70,7 +70,7 @@ describe('Organization', function() {
|
|
|
70
70
|
org2.name = 'No Thanks 2';
|
|
71
71
|
org2.slug = 'org2-slug';
|
|
72
72
|
org2.website = 'nothanks2.org';
|
|
73
|
-
org2.websiteAliases = ['myolddomain.
|
|
73
|
+
org2.websiteAliases = ['myolddomain.ch'];
|
|
74
74
|
org2.related = [];
|
|
75
75
|
org2.aliases.push('NT2');
|
|
76
76
|
org2.crunchbase.uuid = 'abc';
|
|
@@ -899,7 +899,7 @@ describe('Organization', function() {
|
|
|
899
899
|
});
|
|
900
900
|
|
|
901
901
|
it('finds org by domain alias', function (done) {
|
|
902
|
-
Organization.findByDomains(['doesnotexist.io', 'myolddomain.
|
|
902
|
+
Organization.findByDomains(['doesnotexist.io', 'myolddomain.ch'], function (err, result) {
|
|
903
903
|
should.not.exist(err);
|
|
904
904
|
should.exist(result);
|
|
905
905
|
result.length.should.equal(1);
|
|
@@ -1327,11 +1327,11 @@ describe('Organization', function() {
|
|
|
1327
1327
|
|
|
1328
1328
|
config.CUSTOMER_ID = customer2._id.toString();
|
|
1329
1329
|
|
|
1330
|
-
var
|
|
1331
|
-
|
|
1332
|
-
|
|
1330
|
+
var org6 = new Organization();
|
|
1331
|
+
org6.name = 'Newest Co';
|
|
1332
|
+
org6.slug = 'newest-co';
|
|
1333
1333
|
|
|
1334
|
-
Organization.upsert(
|
|
1334
|
+
Organization.upsert(org6, 'test-user', function(err, result1) {
|
|
1335
1335
|
|
|
1336
1336
|
should.not.exist(err);
|
|
1337
1337
|
should.exist(result1);
|