Scaffolder: PR comments

This commit is contained in:
Oscar Hernandez
2021-02-11 13:02:38 -06:00
parent e8e35fb5fd
commit 452602094f
2 changed files with 3 additions and 4 deletions
@@ -167,8 +167,7 @@ export const ScaffolderPageContents = () => {
</Typography>
)}
{error && (
<WarningPanel>
Oops! Something went wrong loading the templates:{' '}
<WarningPanel title="Oops! Something went wrong loading the templates">
{error.message}
</WarningPanel>
)}
@@ -65,7 +65,7 @@ describe('useStarredEntities', () => {
expect(result.current.starredEntities.size).toBe(0);
});
it('should return a set with the current items when there is items in storage', async () => {
it('should return a set with the current items when there are items in storage', async () => {
const expectedIds = ['i', 'am', 'some', 'test', 'ids'];
const store = mockStorage?.forBucket('settings');
await store?.set('starredEntities', expectedIds);
@@ -95,7 +95,7 @@ describe('useStarredEntities', () => {
expect(result.current.isStarredEntity(mockEntity)).toBeTruthy();
});
it('should write new entries to the local store when adding a togglging entity', async () => {
it('should write new entries to the local store when adding a toggling entity', async () => {
const { result } = renderHook(() => useStarredEntities(), { wrapper });
act(() => {