Skip to content

Commit

Permalink
Right now commented confirmation email from MLN
Browse files Browse the repository at this point in the history
  • Loading branch information
deepikagonuguntla committed Sep 9, 2024
1 parent 9ab4bee commit bc4d46f
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 44 deletions.
2 changes: 1 addition & 1 deletion __mocks__/axios.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import mockAxios from 'jest-mock-axios';
export default mockAxios;
export default mockAxios;
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,4 @@ describe('SignOutLink', () => {
// Assertions
expect(axios.delete).toHaveBeenCalledWith('/users/logout', {});
});
});
});
2 changes: 1 addition & 1 deletion app/javascript/components/Accounts/Accounts.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ describe('Accounts', () => {
expect(document.title).toBe("Account Details | MyLibraryNYC"); // Verify document title
expect(screen.getByText('You have not yet placed any orders.')).toBeInTheDocument();
});
});
});
1 change: 0 additions & 1 deletion app/javascript/components/BookTitles/BookTitles.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,3 @@ describe('BookTitles component', () => {
});
});
});

2 changes: 1 addition & 1 deletion app/javascript/components/Faqs/Faqs.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ describe('Faq component', () => {
expect(screen.queryByText("Does my school participate in MyLibraryNYC?")).not.toBeInTheDocument();
});
});
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,4 @@ describe('ParticipatingSchools', () => {
});
expect(screen.getByText("There are no results that match your search criteria.")).toBeInTheDocument();
});

});
});
36 changes: 0 additions & 36 deletions jest.setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,39 +16,3 @@ Object.defineProperty(window, 'matchMedia', {
mockResolvedValueOnce: jest.fn(),
})),
});
// Mocking the nypl design-system-react-components hook
// jest.mock('', () => ({
// useNYPLBreakpoints: jest.fn(() => ({
// isLargerThanMedium: true,
// isLargerThanMobile: false,
// })),
// useColorMode: jest.fn().mockReturnValue({
// colorMode: 'light',
// }),
// useColorModeValue: jest.fn().mockReturnValue({
// color: 'light-color-value',
// }),
// SkeletonLoader: jest.fn(),
// TemplateAppContainer: jest.fn(),
// HorizontalRule: jest.fn(),
// Flex: jest.fn(),
// Spacer: jest.fn(),
// Heading: jest.fn(),
// SearchBar: jest.fn(),
// Accordion: jest.fn(),
// Button: jest.fn(),
// ButtonGroup: jest.fn(),
// Select: jest.fn(),
// Icon: jest.fn(),
// Card: jest.fn(),
// CardHeading: jest.fn(),
// CardContent: jest.fn(),
// Pagination: jest.fn(),
// Checkbox: jest.fn(),
// Slider: jest.fn(),
// CheckboxGroup: jest.fn(),
// Text: jest.fn(),
// Box: jest.fn(),
// Notification: jest.fn(),
// Toggle: jest.fn(),
//}));
2 changes: 1 addition & 1 deletion lib/user_delayed_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def perform
if response.code == 201
defensive_log("Patron created successfully")
# Send user account confirmation email
user.account_confirmed_email_to_user
# user.account_confirmed_email_to_user
defensive_log("#{self.class.name}: Patron creator service ran. Saving user in MLN db.")
user.save_as_complete!
end
Expand Down

0 comments on commit bc4d46f

Please sign in to comment.