fix: lint
This commit is contained in:
		
							parent
							
								
									42526900d3
								
							
						
					
					
						commit
						c07db3d999
					
				
					 6 changed files with 18 additions and 16 deletions
				
			
		| 
						 | 
				
			
			@ -33,7 +33,7 @@ describe('Questions controllers', () => {
 | 
			
		|||
        expect(jsonMock).toHaveBeenCalledWith(expect.objectContaining({answers: expect.anything()}));
 | 
			
		||||
 | 
			
		||||
        const result = jsonMock.mock.lastCall?.[0];
 | 
			
		||||
        // console.log(result.answers);
 | 
			
		||||
        // Console.log(result.answers);
 | 
			
		||||
        expect(result.questions).to.have.length.greaterThan(1);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -46,8 +46,8 @@ describe('Questions controllers', () => {
 | 
			
		|||
        await getAnswerHandler(req as Request, res as Response);
 | 
			
		||||
        expect(jsonMock).toHaveBeenCalledWith(expect.objectContaining({answer: expect.anything()}));
 | 
			
		||||
 | 
			
		||||
        // const result = jsonMock.mock.lastCall?.[0];
 | 
			
		||||
        // console.log(result.answer);
 | 
			
		||||
        // Const result = jsonMock.mock.lastCall?.[0];
 | 
			
		||||
        // Console.log(result.answer);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
    it('Get answer hruid does not exist', async () => {
 | 
			
		||||
| 
						 | 
				
			
			@ -83,7 +83,7 @@ describe('Questions controllers', () => {
 | 
			
		|||
        expect(jsonMock).toHaveBeenCalledWith(expect.objectContaining({ answer: expect.anything() }));
 | 
			
		||||
 | 
			
		||||
        const result = jsonMock.mock.lastCall?.[0];
 | 
			
		||||
        // console.log(result.question);
 | 
			
		||||
        // Console.log(result.question);
 | 
			
		||||
        expect(result.answer.content).to.eq(newContent);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -37,7 +37,7 @@ describe('Questions controllers', () => {
 | 
			
		|||
        expect(jsonMock).toHaveBeenCalledWith(expect.objectContaining({ questions: expect.anything() }));
 | 
			
		||||
 | 
			
		||||
        const result = jsonMock.mock.lastCall?.[0];
 | 
			
		||||
        // console.log(result.questions);
 | 
			
		||||
        // Console.log(result.questions);
 | 
			
		||||
        expect(result.questions).to.have.length.greaterThan(1);
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -50,8 +50,8 @@ describe('Questions controllers', () => {
 | 
			
		|||
        await getQuestionHandler(req as Request, res as Response);
 | 
			
		||||
        expect(jsonMock).toHaveBeenCalledWith(expect.objectContaining({ question: expect.anything() }));
 | 
			
		||||
 | 
			
		||||
        // const result = jsonMock.mock.lastCall?.[0];
 | 
			
		||||
        // console.log(result.question);
 | 
			
		||||
        // Const result = jsonMock.mock.lastCall?.[0];
 | 
			
		||||
        // Console.log(result.question);
 | 
			
		||||
    })
 | 
			
		||||
 | 
			
		||||
    it('Get question with fallback sequence number and version', async () => {
 | 
			
		||||
| 
						 | 
				
			
			@ -63,8 +63,8 @@ describe('Questions controllers', () => {
 | 
			
		|||
        await getQuestionHandler(req as Request, res as Response);
 | 
			
		||||
        expect(jsonMock).toHaveBeenCalledWith(expect.objectContaining({ question: expect.anything() }));
 | 
			
		||||
 | 
			
		||||
        // const result = jsonMock.mock.lastCall?.[0];
 | 
			
		||||
        // console.log(result.question);
 | 
			
		||||
        // Const result = jsonMock.mock.lastCall?.[0];
 | 
			
		||||
        // Console.log(result.question);
 | 
			
		||||
    })
 | 
			
		||||
 | 
			
		||||
    it('Get question hruid does not exist', async () => {
 | 
			
		||||
| 
						 | 
				
			
			@ -88,7 +88,7 @@ describe('Questions controllers', () => {
 | 
			
		|||
    })
 | 
			
		||||
 | 
			
		||||
    /*
 | 
			
		||||
    it('Create and delete question', async() => {
 | 
			
		||||
    It('Create and delete question', async() => {
 | 
			
		||||
        req = {
 | 
			
		||||
            params: { hruid: 'id05', version: '1', seq: '2'},
 | 
			
		||||
            query: { lang: Language.English },
 | 
			
		||||
| 
						 | 
				
			
			@ -117,7 +117,7 @@ describe('Questions controllers', () => {
 | 
			
		|||
        expect(jsonMock).toHaveBeenCalledWith(expect.objectContaining({ question: expect.anything() }));
 | 
			
		||||
 | 
			
		||||
        const result = jsonMock.mock.lastCall?.[0];
 | 
			
		||||
        // console.log(result.question);
 | 
			
		||||
        // Console.log(result.question);
 | 
			
		||||
        expect(result.question.content).to.eq(newContent);
 | 
			
		||||
    });
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Reference in a new issue