Skip to content

Commit

Permalink
quick TS fix for AddressForm.spec.tsx (#567)
Browse files Browse the repository at this point in the history
* quick TS fix for AddressForm.spec.tsx

* simplify 'test' autolabeler glob patterns
  • Loading branch information
dpgraham4401 authored Jun 29, 2023
1 parent 05e66c8 commit 32c0f38
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ autolabeler:
- '/redux/gmi'
- label: 'test'
files:
- 'client/src/**/*.spec.{ts,tsx}'
- 'server/**/test_*.py'
- 'server/**/*_test.py'
- '**/*.spec.{ts,tsx}'
- '**/test_*.py'
- '**/*_test.py'
- label: 'infrastructure'
files:
- 'docker-compose.yaml'
Expand Down
5 changes: 1 addition & 4 deletions client/src/components/Manifest/Address/AddressForm.spec.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import '@testing-library/jest-dom';
import { siteType } from 'components/Manifest/manifestSchema';
import React from 'react';
import { cleanup, renderWithProviders, screen } from 'test-utils';
import { AddressForm } from './AddressForm';
Expand All @@ -10,9 +9,7 @@ afterEach(() => {

describe('AddressForm', () => {
test('renders with basic information inputs', () => {
renderWithProviders(
<AddressForm addressType={'siteAddress'} handlerType={siteType.enum.generator} />
);
renderWithProviders(<AddressForm addressType={'siteAddress'} />);
expect(screen.getByText(/Street Name/i)).toBeInTheDocument();
expect(screen.getByText(/Street Number/i)).toBeInTheDocument();
expect(screen.getByText(/Zip/i)).toBeInTheDocument();
Expand Down
4 changes: 4 additions & 0 deletions client/src/store/notificationSlice/notification.slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ const notificationSlice = createSlice({
},
});

/**
* Selects the user's alerts from the Redux store.
* @param state
*/
export const selectNotifications = (state: { notification: NotificationState }) =>
state.notification.notifications;

Expand Down

0 comments on commit 32c0f38

Please sign in to comment.