Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions generators/angular/__snapshots__/generator.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1240,12 +1240,10 @@ describe("UserManagement Service", () => {
});

it("should delete a UserManagement", () => {
const expected = true;

service.delete("ABC").subscribe();

const req = httpMock.expectOne({ method: "DELETE" });
req.flush({ status: 200 });
const requests = httpMock.match({ method: "DELETE" });
expect(requests.length).toBe(1);
});

describe("addUserManagementToCollectionIfMissing", () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,10 @@ describe('<%= entityAngularName %> Service', () => {

<%_ if (!readOnly) { _%>
it('should delete a <%= entityAngularName %>', () => {
const expected = true;

service.delete(<%- tsKeyId %>).subscribe();

const req = httpMock.expectOne({ method: 'DELETE' });
req.flush({ status: 200 });
const requests = httpMock.match({ method: 'DELETE' });
expect(requests.length).toBe(1);
});
<%_ } _%>

Expand Down
Loading