@dhyasama/totem-models 1.0.1 → 1.6.1

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/test/Person.js CHANGED
@@ -699,33 +699,6 @@ describe('Person', function() {
699
699
 
700
700
  });
701
701
 
702
- it('finds a person by id and customer', function(done) {
703
-
704
- Person.getByIdCustomer(person.id, config.CUSTOMER_ID, function(err, person) {
705
- should.not.exist(err);
706
- should.exist(person);
707
- done();
708
- });
709
-
710
- });
711
-
712
- it('finds a person by id and customer with a populated event note', function(done) {
713
-
714
- Person.getByIdCustomer(person4.id, config.CUSTOMER_ID, function(err, person) {
715
- should.not.exist(err);
716
- should.exist(person);
717
- should.exist(person.calendarEventSummaries);
718
- person.calendarEventSummaries.length.should.equal(1);
719
- should.exist(person.calendarEventSummaries[0].notes);
720
- person.calendarEventSummaries[0].notes.length.should.equal(1);
721
- should.exist(person.calendarEventSummaries[0].notes[0].createdBy);
722
-
723
- return done();
724
-
725
- });
726
-
727
- });
728
-
729
702
  it('finds a person by id and populates', function(done) {
730
703
 
731
704
  Person.getById(person5.id, function(err, person) {
@@ -848,27 +821,6 @@ describe('Person', function() {
848
821
 
849
822
  });
850
823
 
851
- it('finds a person by id and customer with a populated note', function(done) {
852
-
853
- Person.getByIdCustomer(person2.id, config.CUSTOMER_ID, function(err, person) {
854
-
855
- should.not.exist(err);
856
- should.exist(person);
857
- should.exist(person.notes);
858
- person.notes.length.should.equal(1);
859
- should.exist(person.notes[0].createdBy);
860
- should.exist(person.notes[0].createdBy.avatarUrl);
861
- person.notes[0].createdBy.avatarUrl.length.should.be.above(0);
862
- should.exist(person.notes[0].createdBy.name);
863
- should.exist(person.notes[0].createdBy.name.first);
864
- person.notes[0].createdBy.name.first.length.should.be.above(0);
865
-
866
- return done();
867
-
868
- });
869
-
870
- });
871
-
872
824
  it('deletes a simple note', function(done) {
873
825
 
874
826
  Person.deleteNote(noteId, function(err, result) {