Skip to content

Commit e49e5b5

Browse files
committed
fix: remove snapshot
Signed-off-by: Muhammad Aaqil <aaqilcs102@gmail.com>
1 parent 219624c commit e49e5b5

1 file changed

Lines changed: 0 additions & 86 deletions

File tree

packages/cli/snapshots/integration/generators/relation.belongs-to.integration.snapshots.js

Lines changed: 0 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -238,92 +238,6 @@ export * from './order-customer.controller';
238238
`;
239239

240240

241-
exports[`lb4 relation checks if the controller file created for multiple relations answers {"relationType":"belongsTo","sourceModel":"Task","destinationModel":"Employee","relationName":"assignedTo"} checks controller content with belongsTo relation for multiple relations 1`] = `
242-
import {
243-
repository,
244-
} from '@loopback/repository';
245-
import {
246-
param,
247-
get,
248-
getModelSchemaRef,
249-
} from '@loopback/rest';
250-
import {
251-
Task,
252-
Employee,
253-
} from '../models';
254-
import {TaskRepository} from '../repositories';
255-
256-
export class TaskEmployeeController {
257-
constructor(
258-
@repository(TaskRepository)
259-
public taskRepository: TaskRepository,
260-
) { }
261-
262-
@get('/tasks/{id}/employee', {
263-
responses: {
264-
'200': {
265-
description: 'Employee belonging to Task',
266-
content: {
267-
'application/json': {
268-
schema: getModelSchemaRef(Employee),
269-
},
270-
},
271-
},
272-
},
273-
})
274-
async getEmployee(
275-
@param.path.number('id') id: typeof Task.prototype.id,
276-
): Promise<Employee> {
277-
return this.taskRepository.assignedTo(id);
278-
}
279-
}
280-
281-
`;
282-
283-
284-
exports[`lb4 relation checks if the controller file created for multiple relations answers {"relationType":"belongsTo","sourceModel":"Task","destinationModel":"Employee","relationName":"createdBy"} checks controller content with belongsTo relation for multiple relations 1`] = `
285-
import {
286-
repository,
287-
} from '@loopback/repository';
288-
import {
289-
param,
290-
get,
291-
getModelSchemaRef,
292-
} from '@loopback/rest';
293-
import {
294-
Task,
295-
Employee,
296-
} from '../models';
297-
import {TaskRepository} from '../repositories';
298-
299-
export class TaskEmployeeController {
300-
constructor(
301-
@repository(TaskRepository)
302-
public taskRepository: TaskRepository,
303-
) { }
304-
305-
@get('/tasks/{id}/employee', {
306-
responses: {
307-
'200': {
308-
description: 'Employee belonging to Task',
309-
content: {
310-
'application/json': {
311-
schema: getModelSchemaRef(Employee),
312-
},
313-
},
314-
},
315-
},
316-
})
317-
async getEmployee(
318-
@param.path.number('id') id: typeof Task.prototype.id,
319-
): Promise<Employee> {
320-
return this.taskRepository.createdBy(id);
321-
}
322-
}
323-
324-
`;
325-
326-
327241
exports[`lb4 relation checks if the controller file created for same table relation answers {"relationType":"belongsTo","sourceModel":"Employee","destinationModel":"Employee"} checks controller content with belongsTo relation with same table 1`] = `
328242
export class EmployeeController {}
329243

0 commit comments

Comments
 (0)