Skip to content

Commit

Permalink
update tests for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
barais committed Jul 4, 2024
1 parent e11c2c3 commit f43e2c6
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe('Answer2HybridGradedComment Service', () => {
const req = httpMock.expectOne({ method: 'GET' });
req.flush([returnedFromService]);
httpMock.verify();
expect(expectedResult).toMatchSnapshot([expected]);
expect(expectedResult).toMatchObject([expected]);
});

it('should delete a Answer2HybridGradedComment', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ describe('Answer2HybridGradedComment Form Service', () => {

const answer2HybridGradedComment = service.getAnswer2HybridGradedComment(formGroup) as any;

expect(answer2HybridGradedComment).toMatchSnapshot(sampleWithNewData);
expect(answer2HybridGradedComment).toMatchObject(sampleWithNewData);
});

it('should return NewAnswer2HybridGradedComment for empty Answer2HybridGradedComment initial value', () => {
const formGroup = service.createAnswer2HybridGradedCommentFormGroup();

const answer2HybridGradedComment = service.getAnswer2HybridGradedComment(formGroup) as any;

expect(answer2HybridGradedComment).toMatchSnapshot({});
expect(answer2HybridGradedComment).toMatchObject({});
});

it('should return IAnswer2HybridGradedComment', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('Comments Service', () => {

const req = httpMock.expectOne({ method: 'GET' });
req.flush(returnedFromService);
expect(expectedResult).toMatchSnapshot(elemDefault);
expect(expectedResult).toMatchObject(elemDefault as any);
});

it('should create a Comments', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('CourseGroup Service', () => {

const req = httpMock.expectOne({ method: 'GET' });
req.flush(returnedFromService);
expect(expectedResult).toMatchSnapshot(elemDefault);
expect(expectedResult).toMatchObject(elemDefault as any);
});

it('should create a CourseGroup', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('Course Service', () => {

const req = httpMock.expectOne({ method: 'GET' });
req.flush(returnedFromService);
expect(expectedResult).toMatchSnapshot(elemDefault);
expect(expectedResult).toMatchObject(elemDefault as any);
});

it('should create a Course', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('ExamSheet Service', () => {

const req = httpMock.expectOne({ method: 'GET' });
req.flush(returnedFromService);
expect(expectedResult).toMatchSnapshot(elemDefault);
expect(expectedResult).toMatchObject(elemDefault as any);
});

it('should create a ExamSheet', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('Exam Service', () => {

const req = httpMock.expectOne({ method: 'GET' });
req.flush(returnedFromService);
expect(expectedResult).toMatchSnapshot(elemDefault);
expect(expectedResult).toMatchObject(elemDefault as any);
});

it('should create a Exam', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('FinalResult Service', () => {

const req = httpMock.expectOne({ method: 'GET' });
req.flush(returnedFromService);
expect(expectedResult).toMatchSnapshot(elemDefault);
expect(expectedResult).toMatchObject(elemDefault as any);
});

it('should create a FinalResult', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('GradedComment Service', () => {

const req = httpMock.expectOne({ method: 'GET' });
req.flush(returnedFromService);
expect(expectedResult).toMatchSnapshot(elemDefault);
expect(expectedResult).toMatchObject(elemDefault as any);
});

it('should create a GradedComment', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ describe('HybridGradedComment Service', () => {
const req = httpMock.expectOne({ method: 'GET' });
req.flush([returnedFromService]);
httpMock.verify();
expect(expectedResult).toMatchSnapshot([expected]);
expect(expectedResult).toMatchObject([expected]);
});

it('should delete a HybridGradedComment', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ describe('HybridGradedComment Form Service', () => {

const hybridGradedComment = service.getHybridGradedComment(formGroup) as any;

expect(hybridGradedComment).toMatchSnapshot(sampleWithNewData);
expect(hybridGradedComment).toMatchObject(sampleWithNewData);
});

it('should return NewHybridGradedComment for empty HybridGradedComment initial value', () => {
const formGroup = service.createHybridGradedCommentFormGroup();

const hybridGradedComment = service.getHybridGradedComment(formGroup) as any;

expect(hybridGradedComment).toMatchSnapshot({});
expect(hybridGradedComment).toMatchObject({});
});

it('should return IHybridGradedComment', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('QuestionType Service', () => {

const req = httpMock.expectOne({ method: 'GET' });
req.flush(returnedFromService);
expect(expectedResult).toMatchSnapshot(elemDefault);
expect(expectedResult).toMatchObject(elemDefault);
});

it('should create a QuestionType', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('Question Service', () => {

const req = httpMock.expectOne({ method: 'GET' });
req.flush(returnedFromService);
expect(expectedResult).toMatchSnapshot(elemDefault);
expect(expectedResult).toMatchObject(elemDefault);
});

it('should create a Question', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('Scan Service', () => {

const req = httpMock.expectOne({ method: 'GET' });
req.flush(returnedFromService);
expect(expectedResult).toMatchSnapshot(elemDefault);
expect(expectedResult).toMatchObject(elemDefault);
});

it('should create a Scan', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ describe('StudentResponse Service', () => {

const req = httpMock.expectOne({ method: 'GET' });
req.flush(returnedFromService);
expect(expectedResult).toMatchSnapshot(elemDefault);
expect(expectedResult).toMatchObject(elemDefault as any);
});

it('should create a StudentResponse', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('Template Service', () => {

const req = httpMock.expectOne({ method: 'GET' });
req.flush(returnedFromService);
expect(expectedResult).toMatchSnapshot(elemDefault);
expect(expectedResult).toMatchObject(elemDefault as any);
});

it('should create a Template', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('TextComment Service', () => {

const req = httpMock.expectOne({ method: 'GET' });
req.flush(returnedFromService);
expect(expectedResult).toMatchSnapshot(elemDefault);
expect(expectedResult).toMatchObject(elemDefault as any);
});

it('should create a TextComment', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('Zone Service', () => {

const req = httpMock.expectOne({ method: 'GET' });
req.flush(returnedFromService);
expect(expectedResult).toMatchSnapshot(elemDefault);
expect(expectedResult).toMatchObject(elemDefault as any);
});

it('should create a Zone', () => {
Expand Down

0 comments on commit f43e2c6

Please sign in to comment.