-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update from projects --------- Co-authored-by: daniele <[email protected]>
- Loading branch information
1 parent
d5e83a2
commit c673a76
Showing
67 changed files
with
1,905 additions
and
2,230 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
{{cookiecutter.project_dirname}}/__tests__/components/Navbar.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
import { expect } from '@jest/globals' | ||
import { screen } from '@testing-library/react' | ||
import React from 'react' | ||
|
||
import { Navbar } from '@/components/Navbar' | ||
import { renderWithWrappers } from '@/__tests__/functions' | ||
|
||
const setup = () => renderWithWrappers(<Navbar />) | ||
import { renderWithWrappers } from '@/__tests__/functions' | ||
|
||
test('Navbar renders correctly', () => { | ||
setup() | ||
expect(screen.getByRole('img')).toBeTruthy() | ||
const container = renderWithWrappers(<Navbar />) | ||
expect(container).toMatchSnapshot() | ||
}) |
24 changes: 0 additions & 24 deletions
24
{{cookiecutter.project_dirname}}/__tests__/components/ThemeSwitch.test.tsx
This file was deleted.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
{{cookiecutter.project_dirname}}/__tests__/components/__snapshots__/Navbar.test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Navbar renders correctly 1`] = ` | ||
.c0 { | ||
width: 100%; | ||
background-color: #F4F7F8; | ||
display: flex; | ||
flex-direction: row; | ||
align-items: center; | ||
justify-content: space-between; | ||
padding: 5px; | ||
} | ||
.c0 svg { | ||
height: 48px; | ||
} | ||
.c0 svg path { | ||
fill: #4d517a; | ||
} | ||
.c0 svg path:last-child { | ||
fill: #FFFFFF; | ||
} | ||
<div> | ||
<nav | ||
class="c0" | ||
> | ||
<a | ||
href="/" | ||
> | ||
<svg | ||
viewBox="0 0 395 170" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
d="M220.5 84.7c1.7-2.2 2.9-4.3 3.6-6.2.8-1.9 1.2-3.9 1.2-5.9 0-4.3-1.5-7.9-4.4-10.8-2.9-2.9-6.7-4.3-11.2-4.3-5.1 0-9.7 1.9-13.6 5.7l3.9 4c3.1-2.9 6.3-4.4 9.7-4.4 2.9 0 5.2.9 7 2.7 1.8 1.8 2.6 4.2 2.6 7 0 1.7-.3 3.1-.9 4.5-.6 1.3-1.6 2.9-2.9 4.7l-19.8 26.4v4.1H227V107h-23.2l16.7-22.3zm46.3-9.7c-.1-1.8-.2-3.2-.4-4.1-.2-.9-.4-2-.8-3.2-.3-1.2-.7-2.2-1.2-3-.5-.8-1.1-1.7-1.9-2.5-1.3-1.4-3-2.6-5-3.4-2-.8-4.2-1.2-6.6-1.2-2.4 0-4.6.4-6.6 1.2-2 .8-3.7 2-5 3.4-.7.8-1.4 1.6-1.9 2.5-.5.8-.9 1.9-1.2 3-.3 1.2-.6 2.2-.8 3.2-.2.9-.3 2.3-.4 4.1-.1 1.8-.1 3.4-.1 4.6V91c0 1.2.1 2.7.1 4.6.1 1.8.2 3.2.4 4.1.2.9.4 2 .8 3.2.3 1.2.7 2.2 1.2 3 .5.8 1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13-13zm23-10.8c-1.8 0-3.3 1.5-3.3 3.2V138c0 1.8 1.5 3.3 3.3 3.3 1.8 0 3.3-1.5 3.3-3.3V91.7c0-1.8-1.5-3.3-3.3-3.3zM96 26.9c-5.4 0-9.7 4.4-9.7 9.7V75c0 5.4 4.4 9.7 9.7 9.7 5.4 0 9.7-4.4 9.7-9.7V36.6c.1-5.3-4.3-9.7-9.7-9.7zM99.9 75c0 2.1-1.7 3.8-3.8 3.8s-3.8-1.7-3.8-3.8V36.6c0-2.1 1.7-3.8 3.8-3.8s3.8 1.7 3.8 3.8V75zM64.2 48.7c1.6 0 3-1.3 3-3v-9.1c0-2.1 1.7-3.8 3.8-3.8s3.8 1.7 3.8 3.8c0 .1-.1 12.6-4.6 19.9-.4.6-8.6 14.2-8.8 24.5 0 .8.3 1.6.9 2.1.6.6 1.3.9 2.1.9l14.8-.1c1.6 0 2.9-1.3 2.9-3 0-1.6-1.3-2.9-3-2.9l-11.5.1c1.4-8.4 7.5-18.4 7.6-18.5 5.5-8.7 5.5-22.4 5.5-23 0-5.4-4.4-9.7-9.7-9.7-5.4 0-9.7 4.4-9.7 9.7v9.1c0 1.7 1.3 3 2.9 3z" | ||
/> | ||
</svg> | ||
</a> | ||
</nav> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 0 additions & 34 deletions
34
{{cookiecutter.project_dirname}}/__tests__/components/commons/Input.test.tsx
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
{{cookiecutter.project_dirname}}/__tests__/components/layout/Base.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { expect } from '@jest/globals' | ||
import React from 'react' | ||
|
||
import Layout from '@/components/layout/Base' | ||
|
||
import { renderWithWrappers } from '@/__tests__/functions' | ||
|
||
test('Navbar renders correctly', () => { | ||
const container = renderWithWrappers( | ||
<Layout> | ||
<p>Test base layout</p> | ||
</Layout> | ||
) | ||
expect(container).toMatchSnapshot() | ||
}) |
Oops, something went wrong.